Skip to content

Persist agent session metadata on disk#457

Merged
NagyVikt merged 1 commit into
mainfrom
agent/codex/persistent-agent-session-metadata-2026-04-29-21-22
Apr 29, 2026
Merged

Persist agent session metadata on disk#457
NagyVikt merged 1 commit into
mainfrom
agent/codex/persistent-agent-session-metadata-2026-04-29-21-22

Conversation

@NagyVikt
Copy link
Copy Markdown
Collaborator

Automated by gx branch finish (PR flow).

GitGuardex needs a package-level session store that tools can share without reaching into VS Code-specific schemas. This adds a small CommonJS persistence module backed by per-session JSON files under .guardex/agents/sessions and covers create/read/update/list/remove behavior with temp-dir tests.

Constraint: User requested edits only to src/agents/sessions.js and test/agents-sessions.test.js

Rejected: Reuse VS Code active-agent session schema | it is extension-oriented and stores different records

Confidence: high

Scope-risk: narrow

Directive: Keep this module independent from UI session-schema assumptions unless a CLI contract explicitly merges them

Tested: node --test test/agents-sessions.test.js

Tested: npm test
@NagyVikt NagyVikt merged commit 32c4abf into main Apr 29, 2026
@NagyVikt NagyVikt deleted the agent/codex/persistent-agent-session-metadata-2026-04-29-21-22 branch April 29, 2026 19:29
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