Repository navigation
feat(cli): show local OAuth session expiry - #66
Merged
Merged
Conversation
Co-authored-by: OpenAI Codex <noreply@openai.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add
hoist harness sessionsandhoist harness sessions --jsonto report local Claude Code and Codex sign-in state, account and known expiry times. Both use the desktop session readers, including the one-hour expiry warning and the expired refresh-token rule.Closes #64
Verification
mise run ci:clipassed type checking and all 56 tests, then compiled the Linux x64 binary. The change is confined to the CLI.Fixture transcript
I compiled a native macOS arm64 binary with
mise exec -- bun build cli/src/index.ts --compile --outfile="$proof_dir/hoist"and ranHOIST_TEST_CLI_BINARY="$proof_dir/hoist" mise exec -- bun test cli/test/harness-sessions.test.ts. All six cases passed. Each used a temporary home and isolated PATH. The tests covered active, expiring, expired, expired refresh token, unknown expiry, missing files and malformed files. They checked both output formats for fixture token leakage.The transcript uses synthetic accounts. Live macOS Keychain access was outside this fixture run. The command reads local metadata offline and does not refresh tokens.