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
CLI: derive the remaining session-less command lists and cover web beside a leased connection #4850
Follow-ups from the review of #4839, which made a command that takes no session read no active connection (isFlagSupportedForCommand('session', command) in resolveActiveConnectionDefaults).
Required behavior
One rule for session-less commands.shouldResolveRemoteAuth and REMOTE_MATERIALIZATION_DEFERRED_COMMANDS in src/cli.ts are still hand-kept lists of session-less commands. Derive them from the same predicate where the meaning is the same, and keep an explicit entry only where a command differs for another reason.
Help text. The leased-sessions paragraph in src/commands/schema/cli-help.ts says every command names its session. State that this applies to commands that take a session.
Test.src/__tests__/cli-leased-session.test.ts covers auth status beside an active leased connection. Add a web doctor case.
Completion conditions
No behavior change for any command; the existing leased-session tests pass.
The issue requests follow-up refactoring and test coverage from a prior PR, including deriving session-less command lists, updating help wording, and adding a web doctor test case.
🤖 Claude Opus 5.5 responding on behalf of @samanyudas
I'm taking this one. The plan:
Derive shouldResolveRemoteAuth and REMOTE_MATERIALIZATION_DEFERRED_COMMANDS in src/cli.ts from the same session predicate as resolveActiveConnectionDefaults. An explicit entry stays only where a command differs for a different reason.
Reword the leased-sessions paragraph in src/commands/schema/cli-help.ts so it covers only commands that take a session.
🤖 Drafted by Claude Opus 5.5. Reviewed by @samanyudas and posted on their behalf.
Decision: scope: the PR also changes auth behavior, so the "no behavior change" condition no longer holds for auth. Deriving the lists showed two bugs that came from the hand-kept rules. auth status --remote-config <profile> leased a device and saved an active connection. With a profile that names a lease provider, it failed with REMOTE_SESSION_REQUIRED, which auth cannot satisfy because it rejects --session. No other command changes behavior.
Activity
apex-sentinel-staging commentedon Nov 20, 2026
Apex Sentinel · Issue review
Suggested label:
featureThe issue requests follow-up refactoring and test coverage from a prior PR, including deriving session-less command lists, updating help wording, and adding a web doctor test case.
samanyudas commentedon Nov 21, 2026
Note
🤖 Claude Opus 5.5 responding on behalf of @samanyudas
I'm taking this one. The plan:
shouldResolveRemoteAuthandREMOTE_MATERIALIZATION_DEFERRED_COMMANDSinsrc/cli.tsfrom the same session predicate asresolveActiveConnectionDefaults. An explicit entry stays only where a command differs for a different reason.src/commands/schema/cli-help.tsso it covers only commands that take a session.web doctorcase tosrc/__tests__/cli-leased-session.test.ts, and confirm it fails with fix(cli): run a command that takes no session while a leased connection is active #4839 reverted.No command should change behavior, and
src/cli.tsstays at or under 1,000 lines.samanyudas commentedon Nov 21, 2026
Note
🤖 Drafted by Claude Opus 5.5. Reviewed by @samanyudas and posted on their behalf.
Decision: scope: the PR also changes
authbehavior, so the "no behavior change" condition no longer holds forauth. Deriving the lists showed two bugs that came from the hand-kept rules.auth status --remote-config <profile>leased a device and saved an active connection. With a profile that names a lease provider, it failed withREMOTE_SESSION_REQUIRED, whichauthcannot satisfy because it rejects--session. No other command changes behavior.fix(cli): derive the session-less command rules from the session flag (…