fix(gateway): reuse subagent registry snapshot in session listing#75019
fix(gateway): reuse subagent registry snapshot in session listing#75019clawsweeper[bot] merged 2 commits intomainfrom
Conversation
|
Codex review: passed. Summary Reproducibility: yes. On current main, Next step before merge Security Review detailsBest possible solution: Land the current PR head after required exact-head checks finish, keeping the registry snapshot request-scoped and avoiding global cache or session schema changes. Do we have a high-confidence way to reproduce the issue? Yes. On current main, Is this the best way to solve the issue? Yes. The PR uses the existing What I checked:
Likely related people:
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 08ce17c33ddb. |
|
CI update: exact head |
|
/clawsweeper automerge |
|
🦞🦞
Draft PRs stay fix-only until GitHub marks them ready for review. Pause with Automerge progress:
|
Add a request-scoped subagent registry read context and pass it through sessions.list row construction. This avoids rebuilding subagent registry snapshots and descendant indexes for each row while preserving existing subagent display, spawnedBy, and child-session semantics. Cover parity, moved-child, snapshot-boundary, and registry read-count behavior with focused tests.
5da0e2b to
23ae624
Compare
…enclaw#75019) Summary: - The branch reuses a request-scoped subagent registry read index across Gateway `sessions.list` `spawnedBy` filtering and row enrichment, with focused regression tests and a changelog entry. - Reproducibility: yes. On current main, `spawnedBy` filtering still calls registry read helpers independently ... ce inspection gives a high-confidence reproduction path for snapshot drift during active registry mutation. ClawSweeper fixups: - Included follow-up commit: fix(gateway): reuse subagent registry snapshot in session listing Validation: - ClawSweeper review passed for head 23ae624. - Required merge gates passed before the squash merge. Prepared head SHA: 23ae624 Review: openclaw#75019 (comment) Co-authored-by: anyech <anyech@gmail.com> Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com>
…enclaw#75019) Summary: - The branch reuses a request-scoped subagent registry read index across Gateway `sessions.list` `spawnedBy` filtering and row enrichment, with focused regression tests and a changelog entry. - Reproducibility: yes. On current main, `spawnedBy` filtering still calls registry read helpers independently ... ce inspection gives a high-confidence reproduction path for snapshot drift during active registry mutation. ClawSweeper fixups: - Included follow-up commit: fix(gateway): reuse subagent registry snapshot in session listing Validation: - ClawSweeper review passed for head 23ae624. - Required merge gates passed before the squash merge. Prepared head SHA: 23ae624 Review: openclaw#75019 (comment) Co-authored-by: anyech <anyech@gmail.com> Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com>
Summary
Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
Root Cause (if applicable)
Regression Test Plan (if applicable)
src/agents/subagent-registry-read-context.test.ts,src/gateway/session-utils.subagent.test.tsUser-visible / Behavior Changes
None.
Diagram (if applicable)
Security Impact (required)
Repro + Verification
Environment
Steps
Expected
Actual
source-docs-discovery-report; this replacement branch is draft until the new exact-head CI result is known.Evidence
Human Verification (required)
pnpm test:serial src/agents/subagent-registry-read-context.test.ts src/gateway/session-utils.subagent.test.ts;git diff --check origin/main...HEAD;git diff --checkReview Conversations
Compatibility / Migration
Risks and Mitigations