Repository navigation
fix(agent-manager): treat ephemeral session markers as authoritative - #507
Open
Mugunth007 wants to merge 1 commit into
Open
Mugunth007 wants to merge 1 commit into
Mugunth007 wants to merge 1 commit into
Conversation
This branch has not been deployed
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.
Fixes #500.
Summary
"ephemeral"tracker entries in Pi (~/.pi/agent/sessions.json) and hook mapping entries in Codex (~/.codex/ai-devkit/sessions.json) as authoritative instead of falling through to staleAgentRegistryrows or legacy session scanning.AgentRegistry.mergeEntry/session_map::trusted_existingbehavior for regular session paths while separating ephemeral PIDs into a distinctephemerallist inPiSessionTracker/CodexSessionMapping(TS) andSessionTracker/SessionMapping(Rustdevkit-harness).sessionId: "pid-<pid>",sessionFilePath: undefined/None), skipping Stages 2 and 3 in both TS adapters and Rustdetect().PiSessionTracker.test.ts,PiAdapter.test.ts,CodexSessionMapping.test.ts,CodexAdapter.test.ts) and Rust (pi::tests::ephemeral_tracker_entry_skips_stale_registry_and_session_scan,codex::tests::ephemeral_mapping_entry_skips_stale_registry_and_session_scan).Verification
vitest(packages/agent-manager):94test files passed (1skipped, pre-existing),1423tests passed (12skipped) includingtests/harnesses/piandtests/harnesses/codex.npm run lint(nx run-many -t lintvia WSL Linux):0errors.npx oxfmt --checkon all 8 modified TypeScript files: passed.npx tsc --noEmit(packages/agent-manager): passed.cargo fmt --all -- --check,cargo clippy --workspace --all-targets -- -D warnings, andcargo test --workspace(devkit-core:44 + 10 + 4passed;devkit-harness:84 + 4passed;devkitd:56 + 9passed): all passed.