Expose session branch and workspace path in JSON#1
Merged
nic-kahuna merged 1 commit intoJul 21, 2026
Merged
Conversation
nic-kahuna
force-pushed
the
codex/session-workspace-metadata-v0103
branch
2 times, most recently
from
July 21, 2026 13:33
8b917ed to
3290f0d
Compare
nic-kahuna
force-pushed
the
codex/session-workspace-metadata-v0103
branch
from
July 21, 2026 13:39
3290f0d to
c9c34e4
Compare
nic-kahuna
marked this pull request as ready for review
July 21, 2026 13:43
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.
Summary
branchandworkspacePaththrough the curated session API viewao session get --jsonand session/orchestrator list JSONSemantics and privacy
This is an additive, read-only response change. Both values are omitted when empty; the API does not derive a path, probe filesystem existence or cleanliness, or change persistence/lifecycle behavior. No database migration is required.
workspacePathis an absolute local managed-worktree path. It will therefore be visible anywhere the same session API is visible, including an explicitly enabled password-authenticated LAN/mobile listener. That tradeoff is intentional for this operational source line so cleanup/reporting tools can identify the exact workspace. Prompt text, runtime handles, native agent session IDs, and the full metadata object remain filtered from the public session view.Verification
npm run apicd backend && go test ./internal/httpd/controllers ./internal/httpd/apispec ./internal/clicd backend && go test -race ./internal/httpd/controllers ./internal/clicd frontend && npm run typechecknpm run lintThe first repository-wide lint attempt hit the existing three-second timeout in
TestAuthStatusUnknownWhenKeyOnlyComesFromInteractiveShell; the test passed independently immediately afterward, and the complete lint/test gate passed on rerun with zero lint issues.No issue is linked because issues are disabled in this fork.