Skip to content

fix: pass --ttl and --t3-version through to host add over ssh - #41

Open
goobles-agent[bot] wants to merge 1 commit into
mainfrom
fix/ssh-host-add-flags
Open

goobles-agent[bot] wants to merge 1 commit into
mainfrom
fix/ssh-host-add-flags

Conversation

@goobles-agent

@goobles-agent goobles-agent Bot commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

t3ctl host add <ssh-target> --ttl <duration> --t3-version <version> ignored both options. toFlags() only carries the keys listed in FLAG_NAMES, and ttl and t3Version weren't in it. So the ssh form always minted a 30-day session and always asked npm for the latest t3 version.

Changes

  • src/t3ctl.ts: add ttl and t3Version to FLAG_NAMES.
  • test/cli.test.mjs: the ssh host add test now passes --ttl 7d and checks that it reaches auth session issue. A fake npm on the test's PATH fails the test if it runs. Before this fix the test called the real npm view over the network, because --t3-version 0.0.0 was dropped.

Tests

  • The new checks fail without the fix (npm not found locally, from the fake npm).
  • vpr build, vpr typecheck and node --test test/*.test.mjs pass (86 tests).

Found while porting t3ctl into spr (Sparklink/spr-cli#454), which already carries the same fix.

Written by claude-opus-5-5 via Claude Code in T3 Code on goobles-agentbox.

- map ttl and t3Version in toFlags, which dropped both, so the ssh form used 30d and npm's latest whatever was passed
- make the ssh host add test pass --ttl and fail if npm is asked for a version; it used to call the real npm

Co-Authored-By: claude-opus-5-5 via Claude Code in T3 Code on goobles-agentbox <340224826+goobles-agent[bot]@users.noreply.github.com>
@goobles-agent
goobles-agent Bot requested a review from Goobles as a code owner October 16, 2026 21:17

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant