GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — fix(codex): keep collaboration guidance before conversation by harryzhou2000 · Pull Request #1380 · lidge-jun/opencodex Conversation
|
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughThe Responses parser now records continuation boundaries. Collaboration logic places generated guidance after leading protocol metadata and before conversation content. Stateful requests reuse or replace replayed guidance without duplication. Tests and documentation cover the updated ordering. ChangesDeveloper guidance injection
Estimated code review effort: 3 (Moderate) | ~25 minutes Sequence Diagram(s)sequenceDiagram
participant ResponsesRequest
participant parseRequest
participant injectDeveloperMessage
participant InputItems
ResponsesRequest->>parseRequest: parse continuation input
parseRequest->>injectDeveloperMessage: provide continuation boundary
injectDeveloperMessage->>injectDeveloperMessage: detect replayed guidance
injectDeveloperMessage->>InputItems: insert or replace guidance before conversation
Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
✅ Deterministic PR hygiene checks passed. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
⏳ DRAFT
What to do
Review readiness checklist
0/4 boxes ticked. Automatic draft conversion failed. Please convert this pull request to a draft manually until every box above is ticked. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@harryzhou2000 Please finish your pr. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs-site/src/content/docs/guides/sub-agent-surface.md`:
- Around line 54-56: Update the documentation around the array-form stateless
Responses request ordering to explicitly state that generated guidance is
inserted after leading system and developer metadata, before conversational
input. Keep the existing stateful previous_response_id replay-prefix behavior
unchanged.
Fix all unresolved CodeRabbit comments on this PR:
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 405d5a07-ed5b-4f39-8780-45e28f90df7a
docs-site/src/content/docs/guides/sub-agent-surface.mdsrc/server/responses/collaboration.tstests/multi-agent-compat.test.tstests/responses-state.test.ts
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
8d5434a to
df7ad09
Compare
|
@coderabbitai review |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
✅ Action performedReview finished.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
df7ad09 to
7108a85
Compare
There was an error while loading. Please reload this page.
|
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This is a real bug fix and the current implementation is a strong merge candidate. I found no remaining code-level blocker on head 7108a85251701c17bed4ae0a0289af5359069906: stateless guidance stays after leading system/developer metadata (including additional_tools) and before conversation, while stateful continuations preserve tool-result-first deltas, final compaction ordering, and latest-tagged guidance semantics.
Verification on the submitted head:
I also transplanted the commit locally onto current dev@87e3ff9f63aa9e210d37e73fb5b64cc939ee03d5; the same 238 tests, typecheck, privacy scan, and diff check passed without conflict.
The only remaining blocker is integration provenance: the PR branch is currently 3 commits behind dev, and GitHub does not show the full exact-head platform matrix for this head. Please rebase onto current dev and let the complete exact-head CI finish. If that matrix is green, this should be ready for independent maintainer merge.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Requesting changes on the current head 7108a852.
There is still one merge-blocking ordering hole in the stateful path. The PR fixes the stateless root cause by keeping generated guidance before conversation input, but previous_response_id continuations unconditionally append changed guidance to both parsed.context.messages and the raw input delta. That is necessary for an unexpanded function_call_output delta, where the tool result must stay first, but it is wrong for an ordinary stateful user-message delta: the new user turn is now immediately before the changed <multi_agent_mode> block, so stable collaboration metadata again becomes recency-dominant input after conversation.
Please distinguish the two cases instead of treating every stateful delta as tool-result-first. Preserve leading tool-result/call protocol items when required, but insert changed generated guidance before the first conversational item in an ordinary stateful delta. Add a regression test for previous_response_id + changed guidance + a new user message, alongside the existing tool-output-first case.
The current A→B→A test does not cover this because it asserts only that the replacement is newest; it does not exercise a fresh user-message delta or verify the conversation/guidance boundary.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
7108a85 to
ea42264
Compare
There was an error while loading. Please reload this page.
|
✅ Action performedReview finished.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs-site/src/content/docs/guides/sub-agent-surface.md`:
- Around line 56-58: Update the continuation guidance in the paragraph
describing stateful previous_response_id replay to document latest-tagged
deduplication: injectDeveloperMessage reuses guidance only when it matches the
latest tagged replay item; for an A-B-A sequence, retain the earlier A and
insert a new A after the replay boundary.
Fix all unresolved CodeRabbit comments on this PR:
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: f554d92c-8c93-42fc-a890-17d128099da8
docs-site/src/content/docs/guides/sub-agent-surface.mdsrc/responses/parser.tssrc/server/responses/collaboration.tssrc/types.tstests/multi-agent-compat.test.ts
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
@Wibias The requested stateful-ordering fix is now on Changed guidance now follows leading tool/protocol items but precedes the first current conversational item. Regressions cover an ordinary new-user continuation, Local CI reproduction for this exact code:
macOS and Windows remain platform-only checks for Actions. Could you please approve/trigger fork CI for exact head |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
ea42264 to
0651b86
Compare
There was an error while loading. Please reload this page.
|
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@Wibias Final exact head is now |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Re-review on head 0651b8697 against current dev@849ab5e35.
My previous stateful-ordering blocker is addressed. The new continuation boundary keeps leading tool/protocol items first, places changed collaboration guidance before the first current conversational item, and keeps the raw and parsed representations aligned. The added regressions now cover both the ordinary previous_response_id user delta and the tool-result-first case, plus A-B-A tagged-guidance transitions. I do not see a remaining code-level ordering blocker in this head.
I am not approving yet because this branch is still based on dev@37597869e and is 48 base commits behind current dev. The exact-head Cross-platform CI and React Doctor runs are action_required with zero jobs, so they have not actually exercised this head. Please rebase onto current dev and run the exact-head matrix. If that is green, my previous requested-change concern is resolved.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
0651b86 to
7932d04
Compare
There was an error while loading. Please reload this page.
|
✅ Action performedReview finished.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs-site/src/content/docs/guides/sub-agent-surface.md`:
- Around line 54-58: Update the stateful continuation description to distinguish
tagged guidance from other generated guidance: apply the latest tagged
replay-item matching rule only to guidance enclosed by the multi_agent_mode
markers, while untagged guidance such as injectionPrompt is deduplicated when
any exact generated developer item exists in the trusted replay prefix.
Fix all unresolved CodeRabbit comments on this PR:
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 43bcecf1-9588-4762-a307-f7b8e0510128
docs-site/src/content/docs/guides/sub-agent-surface.md
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
There was an error while loading. Please reload this page.
|
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks @harryzhou2000 for sticking with this through the ordering edge cases and rebase. This is useful because collaboration guidance is stable metadata, not fresh conversation content: keeping it before the current conversational turn avoids making model/roster guidance accidentally recency-dominant, while still preserving tool/protocol-first continuations and compaction ordering. That should make delegated-agent behavior much more predictable across both stateless and previous_response_id flows.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…n#1380) * fix(codex): keep collaboration guidance before conversation * fix(codex): order changed stateful guidance * Update docs-site/src/content/docs/guides/sub-agent-surface.md Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --------- Co-authored-by: Wibias <[email protected]> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.