Skip to content

Studio: stop a generation recovery deleting the turn's tool calls - #10584

Merged
danielhanchen merged 20 commits into
mainfrom
studio-recovery-keeps-tool-cards
Sep 10, 2026
Merged

danielhanchen merged 20 commits into
mainfrom
studio-recovery-keeps-tool-cards

Conversation

@shimmyshimmer

@shimmyshimmer shimmyshimmer commented Sep 9, 2026 •

Copy link
Copy Markdown
Member

Recovery rebuilt replies from text and reasoning alone. Tool cards and other structured parts in a saved reply could disappear, and saving the rebuilt message made that loss persistent.

This change:

  • Preserves tool calls, sources, files, and images at their original positions, including between reasoning blocks.
  • Replays tool_start, tool_end, and document_citations events so later calls, completed results, and citation sources survive recovery and reloads.
  • Keeps ungated research handoffs hidden while retaining approval cards.
  • Preserves Gemini native execution, result, and image parts for subsequent turns.
  • Matches live and replayed cards without duplicating calls or combining separate rounds that reuse a backend ID.
  • Saves backend and approval identities on live cards. Older unfinished cards recover their identity from earlier events without replaying saved text.
  • Preserves recovered card order and places missing cards beside shared neighbors.
  • Restores missing parts only when recovered text matches or extends the current reply. Divergent recovered replies win unchanged, and matching recovered cards retain their authoritative results.

New tool-enabled requests continue to use the existing legacy streaming route. This PR protects tool-containing replies that reach recovery; it does not enable durable tool runs or change inference or hardware selection. Text-only recovery retains its existing replay cursor. Older unfinished cards without backend identities need an additional history replay to recover their mapping.

Validation:

  • Five focused regression checks pass for the latest changes: citation replay and deduplication, research handoffs and approval cards, Gemini completion and later image replay, legacy signatures and exact arguments, and citation URL handling.
  • Syntax checks pass for all five changed files.
  • Biome reports no errors in the extracted helpers, replay helper, or regression test file.
  • git diff --check passes.

The full frontend suite (7,144 tests), npm run typecheck, and npm run build passed at 1b1c9211. The latest changes were validated with the focused checks above; the full suite was not rerun locally, and CI was not awaited.

A recovery rebuilds the reply from the raw text a run's chunk events carried.
generationRawContent projects the stored parts down to that string and has a
branch for reasoning and a branch for text and no else, so a tool-call part is
dropped on the way in. parseAssistantContent then rebuilds text and reasoning
only, and commit() writes the result back with saveStoredChatMessage, so the
loss is persisted and survives every later open of the chat.

What the reader sees is the thinking blocks and the prose intact, since both
round-trip through <think> tags, and no tool cards between them: the model's
colon preamble is left introducing nothing.

Recovery is armed by online, pageshow, visibilitychange and history load, so
this needs only a long local run the reader tabs away from and comes back to.

Keep the parts the projection cannot express, with the offset they sat at, and
splice them back after the rebuild. Offsets rather than indices because the
rebuild coalesces text the stored body had split around a call, so a call can
land inside a rebuilt text part and has to split it. Same idea as the stream
adapter's textCursor.

recoveredContentToImport had the matching hole: it compares both bodies through
that projection, which cannot see a tool call, so a recovered body that had
dropped one still counted as newer and replaced the view. The recovered text
stays authoritative and the view's carried parts go back on top.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 9, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-10T04:02:50.304371Z 73c5471 Manual request
🔒 Security Review ✅ Completed 2026-09-10T04:03:43.585801Z 73c5471 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Breezy!

Reviewed commit: b1ec814b1c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

A provider that leaves tool_call_id empty registered every start under the
same pending key, so a second call took the first one's card and one of the
two was lost on recovery. The adapter opens a card per start and closes the
most recent open one; keyed replay now does the same.
@danielhanchen

Copy link
Copy Markdown
Member

Ran the full gate at b1ec814b1 (the description only claims it for 1b1c9211) and pushed one fix.

Gate at b1ec814b1, studio/frontend, npm ci --ignore-scripts:

Check merge-base d530284a0 head b1ec814b1 with 35cfc0664
npm run typecheck - pass pass
npm test 7112/7112 7149/7149 7151/7151
npm run build - pass (2.0s) pass
biome check on the 3 touched pre-existing files 5 errors, 60 warnings identical identical

Reproduced the defect on the merge-base to confirm it is real: a saved reply of
reasoning, tool-call, source, text comes back out of generationRawContent +
parseAssistantContent as reasoning, text, and commit persists that.

One fix, pushed as 35cfc0664. A provider that leaves tool_call_id empty put every
start under the same pending key, so the second call took the first one's card and one of
the two was lost. chat-adapter.ts does not behave that way: a start with no backend id and
no approval id gets ${tool_name}_${Date.now()}, so the live path draws two cards, and an
id-less tool_end resolves to lastPartId. Replay now matches, and this is reachable -
llama_cpp.py reads current_id straight off the model's tool call and the line below it
already notes that ids can come back empty or synthetic. Two regression tests added, both
driving the real scheduler through recoverRun.

Also checked, no change needed:

  • Reasoning splitting around a carried card, cards at offset 0 and at the end, several cards
    sharing one offset, astral characters, literal <think> in prose, unfinished reasoning,
    25 interleaved cards.
  • Sequential reuse of one backend id keeps two cards with distinct results; repeated seqs are
    idempotent; a legacy pending card with no identities forces replayFrom = 0 and backfills
    rather than opening a second card.
  • Divergent recovered replies win with no stale card grafted on; extending replies keep a
    missing card; a lagging prefix does not rewind the view.
  • The -149 lines in chat-adapter.ts are a faithful extraction. The one behavioural delta
    is that an array-shaped google.native_part is now rejected instead of rewritten, which is
    the safer direction.
  • Old saved replies still render: a tool-call part with no backendToolCallId and a
    source / file / image part all survive a round trip.
  • Cross-browser: playwright_tool_activity.py passes on chromium, firefox and webkit at
    head. One chromium run failed on the scene-6 scroll and passed twice on retry, and it
    passes on the merge-base too, so that is flake, not this branch. Nothing in the six changed
    source files touches a browser-specific API, and the build target is ES2022.
  • Nothing outside studio/frontend is touched, and the diff contains no device, platform or
    backend selection code, so no hardware path changes.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 35cfc0664a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +265 to +267
...(typeof event.approval_id === "string" && event.approval_id
? { toolApprovalId: event.approval_id }
: {}),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Re-register recovered approval requests

When recovery encounters a tool_start with awaiting_confirmation, this only stores the approval ID on the card and never calls setToolConfirmation as the live adapter does. ToolConfirmationControls reads exclusively from the in-memory toolConfirmations store, so after a reload the recovered card has no Allow/Deny controls and the backend remains blocked until the recovery timeout; this also affects saved pending cards whose start event is not replayed.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not taking this one. Before this branch, recovery rebuilt the reply from text and reasoning alone, so a gated card did not survive a reload at all and never had Allow/Deny controls; the branch restores the card and its approval id, which is strictly better, not a regression it introduces. Wiring setToolConfirmation into the recovery scheduler is a capability the PR explicitly does not claim: it needs the sandbox session and the confirmation scope the live adapter gets off its own stream, and it would let a follower tab answer a request the producer tab is also showing. Worth doing as durable tool runs, separately from this fix.

Comment on lines +171 to +174
if (event.tool_name === "deep_research") {
if (event.type === "tool_start")
researchHandoff.hiddenCallIds.delete(backendId);
if (readDeepResearchToolEvent(researchHandoff, event)) return;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Resume the deep-research handoff after replay

When the producer tab reloads while an ungated deep_research call is running, replay consumes both tool events here but keeps the resulting researchHandoff.question private and never invokes the startDeepResearch path used by the live adapter. The generation is consequently marked complete after the sentinel tool_end, while the research run the user requested is never created.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same reasoning as the approval item, so not taking this one either. Recovery reads the deep_research events only to decide whether to draw a pill, which is what the earlier ungated-handoff item asked for. Calling startDeepResearch from a follower would create a second run for a question the producer tab has usually already sent, and the chat gets one run. Before this branch recovery did not look at these events at all, so nothing here regressed.

The named cases say what recovery does. These say what it must never do:
lose a card, reorder one, move it through the text, change a word of the
reply, or count one call twice. 14000 generated replies and event streams,
each replayable from its seed.
@danielhanchen

Copy link
Copy Markdown
Member

Second verification pass: isolated environments, a Node matrix, a seeded property suite, and explicit upgrade/downgrade checks. One more commit.

Isolated sandboxes. A uv venv under temp/ (CPython 3.12.12, playwright 1.62.0) and pinned Node toolchains downloaded into temp/nodes/, so nothing here leans on the ambient environment.

Node matrix, tests/generation-tool-recovery.test.ts:

Node Result
20.19.5 cannot run: bad option: --experimental-strip-types
22.12.0 23/23, and 7151/7151 for the whole suite
22.20.0 23/23
24.14.0 23/23

Worth flagging separately from this PR: engines.node allows ^20.19.0, but type stripping only arrived in Node 22.6 and is default-on from 22.18, so npm test cannot run on the 20 line at all. Pre-existing, not this branch, and CI uses Node 22 so it never shows up there.

Seeded property tests, pushed as 12b99f107 (tests/generation-recovery-invariants.test.ts, 14000 generated cases, 0.7s). Each case replays from its seed. What they assert:

  • a raw round trip keeps every card, its order, the text that precedes it, and every word of the reply, and a second round trip does not drift
  • restoreCarriedParts holds the same properties on already parsed parts
  • replay opens one card per call, lands each result once, is idempotent under the doubled updates the follow stream delivers, and never removes a part already on the reply
  • an import that is not the view keeps the recovered body whole

The generator uses whitespace, astral pairs and a zero-width space, since offsets are UTF-16 code units, and event streams with repeated ids, absent ids, and calls still open when the run ends. The replay property fails on b1ec814b1 and passes on 35cfc0664, so it holds the fix down rather than just decorating it.

Upgrade and downgrade, checked by importing the merge-base module alongside the branch one:

  • new code on an old-format reply keeps the tool-call, source and text parts and the card's result
  • new code preserves its own backendToolCallId / generationToolCallId / toolApprovalId
  • old code on a new-format reply produces exactly what it produces on an old-format one, and the new identity fields never reach the old projection. Downgrading reintroduces the old defect; it does not add a new one
  • an unknown future part type is carried rather than dropped

Browsers. playwright_tool_activity.py from the sandbox venv: chromium, firefox and webkit all pass. Two single-run failures appeared across the session, one chromium and one firefox, on the scene-6 scroll. Both passed on retry (chromium 2/2, firefox 3/3) and both pass on the merge-base, so that scene is flaky under load rather than affected by this branch.

Gate at 12b99f107: npm run typecheck clean, npm test 7155/7155, npm run build clean, biome check unchanged from the merge-base on every pre-existing file.

Sources for the Node claim: nodejs.org/api/typescript.html, nodejs/node#57298.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

Two follow-ups to the id-less handling. Saved cards all carry the same empty
backend id, so seeding the pending map by it kept only the last one and left
the rest running for good; each now takes its own slot. And a legacy pending
card replays the run from 0 to recover its identity, but the publish condition
did not check that the event was new, so every historical chunk rewrote storage
and reimported the thread.
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 9, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 9, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 9, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 9, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 9, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 9, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 9, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 9, 2026
@unslothai unslothai deleted a comment from shimmyshimmer Sep 9, 2026
@unslothai unslothai deleted a comment from shimmyshimmer Sep 9, 2026
@unslothai unslothai deleted a comment from shimmyshimmer Sep 9, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 9, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 9, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 9, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: 81c77c3338

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: 81c77c3338

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 10, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: c049549d2d

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 10, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: d858cad628

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 10, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 10, 2026
@oobabooga

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: e178a4818e

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: e178a4818e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danielhanchen

Copy link
Copy Markdown
Member

What this changes, in plain terms

While Studio streams a reply, the tab doing the streaming owns it. If that tab goes away (closed, reloaded, crashed, laptop asleep), another tab picks the reply back up: it replays the events the run stored on the server, rebuilds the message from them, and saves the rebuilt message back.

The rebuild only knew how to reassemble two things: the text and the reasoning. Everything else the turn was carrying was simply not part of the rebuild, so it was dropped. Tool cards and their results, the Sources a web search produced, generated files, images. Then the stripped rebuild was written over the good copy. A run's events are replayed once, so the loss is permanent, and every reload after that shows the stripped version.

This PR carries those parts through the rebuild. They are held at their offsets in the raw text and put back in place around the text and the reasoning sections, so a recovered turn is the turn that was actually streamed.

Before and after

Same seeded turn, same Studio, two isolated installs that differ only in the code under test. The turn holds a finished web_search card, and its run still has one event left to replay, so recovery genuinely runs on both sides.

Recovered turn, before and after

The picture is what the reader sees. The number below is what got written to storage, read back from GET /api/chat/threads/{id}/messages once recovery had settled, which is the copy that survives a reload:

BEFORE (191b69c12) AFTER (e178a4818)
stored parts reasoning, text reasoning, text, tool-call, text, source, source
tool names none web_search
tool result kept nothing to keep yes
sources none both result URLs
text Let me search for the current behaviour. Recovery replays the run's stored events and saves the rebuilt reply. identical

The text is identical on both sides. That is the point: the only things that move are the parts that were being discarded.

Worth naming, because it makes this harder to reproduce by hand than it looks: the destructive rewrite only happens when the follow succeeds. A run id with no run row on the server throws before the commit and leaves the message untouched, so a reproduction that seeds only the message metadata shows no difference at all and looks like there was never a bug.

Performance

Only the recovery path does this extra work. The live streaming path is untouched. Measured on the real modules, one publish being the unit of work, with the recovery object built once per recovery as it is in practice:

turn added per publish
no tool calls at all, 74 KB of text 0.007 ms, unchanged
5 tool cards, 10 sources each, 10.9 KB 0.067 ms
20 tool cards, 10 sources each, 33.6 KB 0.241 ms
50 tool cards, 20 sources each, 79 KB 1.164 ms

The last row is far past any real turn and is there to show where the cost goes. A turn holding no tool calls skips the new work entirely. Every publish already pays a storage write and a thread export, which is the larger cost by a wide margin.

Pushing the other way, a replayed chunk that does not advance the reply no longer triggers a publish, so a recovery replaying from the start no longer pays a storage write per historical chunk.

Built bundle grows by 8,061 bytes on a 33,938,252 byte build, which is 0.024 percent.

Does it break anything

At e178a4818: npm run typecheck exit 0, npm run build exit 0, and the suite is 7248 passing of 7249.

The single failure is tests/memory-unified-apu.test.ts, "the panel measures pool pressure against the pool". It fails the same way on 191b69c12, this PR's merge base, with none of this applied. This PR changes no memory code.

Backwards compatibility is covered explicitly rather than assumed, since old installs have turns saved by the previous frontend: a card saved with its backend id inside toolCallId and nowhere else is still recognised when its completion arrives, id-less cards each keep their own slot instead of collapsing into one, and a turn with no tool calls rebuilds byte for byte as before. Each of those has a regression test that fails when only that change is reverted.

@danielhanchen

Copy link
Copy Markdown
Member

Followed up on the per-publish cost quoted above and got most of it back, in 73c54710c.

Profiling a publish by stage showed the work was concentrated in one place:

stage 5 cards 20 cards 50 cards
parseAssistantContent 0.001 ms 0.000 ms 0.001 ms
restoreCarriedParts 0.003 ms 0.002 ms 0.003 ms
withSources 0.059 ms 0.160 ms 0.796 ms
recoveredContentToImport 0.025 ms 0.073 ms 0.297 ms

withSources was re-parsing every finished search result in the turn on every rebuild, and a card's sources can only change when the card does. They are now parsed once per card, keyed on the card object, with the result compared as well so an in-place edit could not serve a stale list. apply replaces a card wholesale rather than editing one, which is what makes the key sound.

withSources drops to 0.006 / 0.014 / 0.039 ms, a 10x to 20x cut. End to end per publish:

turn before after
no tool calls, 74 KB of text 0.007 ms 0.001 ms
5 cards, 10 sources each 0.067 ms 0.048 ms
20 cards, 10 sources each 0.241 ms 0.093 ms
50 cards, 20 sources each 1.164 ms 0.352 ms

Two things the cache could plausibly get wrong, both now pinned by a test:

  • A card that finishes twice has to rebuild from the newer result. OpenAI Responses ends a web search twice, a placeholder and then the citations, so keying the cache on the card's backend id, which reads as the obvious choice, would leave the panel showing the placeholder's sources. Making that substitution fails the new test and three existing ones.
  • Each rebuild has to yield its own source objects, metadata included, so a caller editing a part it was handed cannot reach back into what the next rebuild returns. Handing out the cached objects directly fails the second new test.

At 73c54710c: typecheck exit 0, build exit 0, 7250 passing of 7251, the one failure still being tests/memory-unified-apu.test.ts, which fails the same way on the merge base with none of this applied.

The before and after evidence run was repeated on the new head and the recovered turn is unchanged: same six stored parts, same web_search card with its result, same two source URLs.

@oobabooga

Copy link
Copy Markdown
Member

@codex review

1 similar comment
@oobabooga

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: 73c54710c9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: 73c54710c9

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@danielhanchen
danielhanchen merged commit 7436c10 into main Sep 10, 2026
37 of 40 checks passed
@danielhanchen
danielhanchen deleted the studio-recovery-keeps-tool-cards branch September 10, 2026 04:37
CelesteHeartsong added a commit to CelesteHeartsong/unsloth that referenced this pull request Sep 11, 2026
…p 14 pending-semantics tests

The followChatGenerationRun mock now wraps tool events in _toolEvent
(matching the SSE decoder), and the runtime store mock gains the four
tool methods (setToolConfirmation, clearToolConfirmation,
appendToolLiveOutput, clearToolLiveOutput) that the replay options
call on every tool_end.

14 edge-case tests around publish batching, cursor semantics and
id-less card identity are skipped pending a follow-up that updates
their expectations for unslothai#10584's new recovery orchestration.
CelesteHeartsong added a commit to CelesteHeartsong/unsloth that referenced this pull request Sep 11, 2026
…p 14 pending-semantics tests

The followChatGenerationRun mock now wraps tool events in _toolEvent
(matching the SSE decoder), and the runtime store mock gains the four
tool methods (setToolConfirmation, clearToolConfirmation,
appendToolLiveOutput, clearToolLiveOutput) that the replay options
call on every tool_end.

14 edge-case tests around publish batching, cursor semantics and
id-less card identity are skipped pending a follow-up that updates
their expectations for unslothai#10584's new recovery orchestration.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants