You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Hackathon] fix(cli): warn when --ttl is outside the effective 60–28800 range instead of silently relying on server clamping #408
tunnel start --ttl documents an effective range of 60–28800 seconds ("The server clamps this"), but the CLI passes any positive integer through with no feedback. A user passing --ttl 5 gets a 60-second tunnel with no indication their request was changed.
Details / implementation notes
Reproduction (built from source at 988c035, v0.14.0):
$ testsprite tunnel start --ttl 5 --dry-run
[dry-run] sample response — not from the server
POST /api/cli/v1/tunnel
...
no warning; the server will clamp 5 → 60 silently
Expected: a stderr warning when the value is outside 60–28800, so the user knows the effective lifetime differs from what they asked for.
Actual: no warning; the value is sent as-is and clamped server-side.
Suggested fix: warn in parseTtl (src/commands/tunnel.ts) when out of range, still proceeding — the server accepts the value, so this stays a warning, not a hard error.
Confirmations
I have searched existing issues and this is not a duplicate.
I have provided my Discord identity above for reward coordination.
Thanks for the interest, @892041548! This issue hasn't been accepted for implementation yet — see the triage comment (a maintainer will label it accepted once it is). Feel free to check back, or ping us on Discord if it's been quiet.
Thanks @892041548. The help text documents the 60–28800 range and the server clamp, and tunnel start prints the effective expiry right after minting, so the lifetime isn't hidden. Closing as not planned.
Activity
892041548 commentedon Oct 16, 2026
/assign
testsprite-hob commentedon Oct 16, 2026
Thanks for the interest, @892041548! This issue hasn't been accepted for implementation yet — see the triage comment (a maintainer will label it
acceptedonce it is). Feel free to check back, or ping us on Discord if it's been quiet.fyZhang66 commentedon Oct 22, 2026
Thanks @892041548. The help text documents the 60–28800 range and the server clamp, and
tunnel startprints the effective expiry right after minting, so the lifetime isn't hidden. Closing as not planned.