Skip to content

🪟 fix: Wait for Side Chat Destination Readiness - #18453

Closed
dustinhealy wants to merge 7 commits into
devfrom
fix/side-chat-handoff-readiness
Closed

dustinhealy wants to merge 7 commits into
devfrom
fix/side-chat-handoff-readiness

Conversation

@dustinhealy

@dustinhealy dustinhealy commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Continuing a finished child in a side chat can leave its question unsent while agent details, workspace discovery or existing history are still loading. Cached errors and partially loaded catalogs must stay distinguishable from final denial or missing data. Preserve the question as a conversation draft until the actual attempt is accepted or definitively refused, and let a newer manual action supersede automatic intent.

How it works

The existing side-chat atom seeds only an empty memory-only draft; existing drafts stay manual. Replay prevention uses the captured handoff, so a new continuation for the same mounted conversation can still send. A successful driven publication consumes captured intent for every entry point: composer, transcript edit, regenerate, continue, preview and automatic continuation. A different transcript action preserves the unsent question as a manual draft. Driven turns prepare their submission without draining composer inputs, publish through the actual follower, and commit only captured skills, quotes, reasoning, file entries and app-owned deletion markers after acceptance. Rejected publication preserves those inputs and releases the synchronous send lock; newly staged or replaced inputs survive accepted cleanup. Main-chat submission keeps its existing effect and launch order. A feature-owned atomic draft action compares the captured normalized side-chat object, so accepted cleanup cannot erase a replacement handoff even for the same conversation and words. Captured identity fences an old callback from a newer opening; edits and clearing remain explicit cancellation.

The automatic adapter reuses the actual shared turn admission and its accepted/pending/blocked result. Manual asks retain false/undefined returns. One canonical workspace derivation preserves valid without-attached choices; only unavailable admission consults pending status/recovery/replacement/catalog state. The app carries native active/paused status from existing workspace observers only while a handoff is live. Warmup remains pending even over a cached completed/error result. The existing Root catalog observer supplies lifecycle separately from its incremental map, so later pages can resolve missing linked agents without a second query or delaying already-complete graphs.

The existing handoff-only readiness subscription observes the current target and exact history key, using the shared history-revalidation guard. Same-row success, failure or cancellation can wake the attempt without another history loader, subscription or retry timer. Follow-owned phase completion also wakes a refused send check when message/status identity does not change. Eligibility includes the core-owned request-availability projection, covering live pauses and hidden answer claims; ordinary sends wait while question/approval answers remain usable. Expired-pause cleanup and reentrant request checks remain authoritative. Later expired-pause supersession and answer completion publish newly free ownership once, including hidden answer claims. An automatic handoff waits through an older turn’s synchronous lock; manual duplicate submission still declines.

File cleanup checks the live composer’s key/server/temp/source aliases and opaque app-owned upload operation identity, including preassigned uploads not yet visible in the composer. Cancellation/discard recheck through callbacks; same-JSON replacement drafts keep their deletion markers. Actual accepted server references stay protected from deletion when reattached. Main and no-guard callers retain their previous behavior.

Promotion moves unsent words through the existing main-composer handoff. A known withdrawn turn restores its words before awaiting stop acknowledgement or reconciliation, preserving ordinary close/remount and one-owner promotion without re-arming automatic intent.

Type of change

  • Bug fix
  • Tests / tooling / CI

Testing

Environment: Node.js 24.16.0, Chrome/macOS, deterministic provider fixtures and disposable MongoDB; isolated ports, configuration, authentication and artifacts. No paid provider or production traffic.

  • 2,385 shared tests across 124 core/React/panel suites pass, followed by 257 core tests after the final no-duplicate-notification control. Coverage includes pause/answer expiry and reentrancy, actual post-preflight refusal retaining all staged inputs, snapshot cleanup preserving reentrant edits/uploads, same-ID handoff replacement, previous-turn completion, transcript edits, withdrawal and optional host compatibility.
  • 1,140 app tests across 49 suites pass, including main submit/textarea/draft migration, all Chat-hook/regenerate callers and real host/Presentation/Surface/menu paths. The expanded native file matrix covers pre-UI registration, same-ID/alias replacement, reentrant cancellation/discard, actual composer upload completion, accepted resource protection, identical serialized markers and denied storage. Native query tests cover cached-error/paused workspace refetch, paged catalog present/missing/error, initial failure, warmup and disabled/unavailable owners, and external same-row history success/failure/cancellation with key-switch and disabled cleanup.
  • Native query observers retain one required HTTP request per page/refetch, with no request in fresh/inactive cases. Catalog maps keep per-observer identity. Unchanged workspace refetch adds zero normal-pane renders and two live-handoff renders, returning to zero when handoff tracking is disabled. One canonical workspace derivation per attempt is asserted. Twenty unchanged pause notifications produce zero renders, while retirement produces exactly one availability wake. Unrelated/subquery cache writes do not render handoff readiness.
  • Thirteen no-retry browser cases pass against stable normal output: automatic second turn, ordinary desktop/mobile, close/switch, promotion with main send/clear and SPA reopening, genuine cached-success refetch success/403, held native workspace status and accepted transcript edit during held refetch. The matrix also covers answering a side-chat question and approving a side-chat tool. The worker case proves client HTTP admission, not real worker execution.
  • Exact-source shared/frontend builds, both workspace typechecks, scoped static/format/import checks pass.
  • Lighthouse passes three navigations with 250 ms added per Mongo query: median LCP 1,508 ms against 4,500 ms, median CLS 0.0124 against 0.1, lowest reference-CPU TBT 13 ms against 500 ms.

Reproduce the browser workflows:

npx playwright test --config=e2e/playwright.config.mock.ts subagent-activity.spec.ts scenarios/side-chat-open-beside.spec.ts scenarios/side-chat-pauses.spec.ts --grep 'subagent-continue-opens-side-chat|side-chat-opens-conversation-beside|side-chat-opens-beside-on-a-small-screen|side-chat-answers-ask-user-question|side-chat-approves-tool-call' --retries=0

Screenshots / recordings

Both clips start with the completed Research assistant task open in the right pane. Type “What did you find?” and click Continue in a new chat. The test releases the destination’s agent details after its history loads in both runs.

Before. Watch the right-hand composer after the click. The new chat opens, but the question stays in the composer and no reply appears.

before-reviewed.webm

After. Watch the question move into the transcript automatically. The composer clears and the Research assistant replies, “The checklist is missing a rollback test.”

after-reviewed.webm

Risk / compatibility

The shared submission path and optional driven/host inputs change; existing hosts keep defaults, and manual/regenerate caller regressions pass. Side-chat composer acceptance owns only its captured draft; other accepted transcript actions consume intent without clearing that draft. Ordinary manual turns do not rewrite the side-chat selection. Query keys, retries, polling intervals, provider request shapes, backend authorization, configuration and persisted formats are unchanged. Drafts remain memory-only across layout remounts and do not survive a full reload.

There are no added backend/database operations. Optional host ownership capture/guards preserve existing single-argument implementations and add no loader or observer. Upload operation snapshots and live alias scans run only for driven file submissions; main submissions do not capture upload ownership. Per-effect scans use the current composer/cache so callbacks cannot invalidate a stale ownership decision. Very large custom attachment limits have not been benchmarked. Handoff readiness shares the canonical agent query/request and adds no observer to main chat. Workspace/catalog/history changes add no loader or independent query observer. Local work includes a driven acceptance ref and synchronous composer-call ref, captured-input scans at driven submission, one primitive core-availability snapshot per follower, a follow eligibility state cell/interest flag, the catalog lifecycle provider, a key-filtered handoff cache subscription and a status scan when code admission is unavailable. Catalog lifecycle changes may notify workspace consumers; ordinary 10-second status polling retains its prior render bound. The availability getter performs a constant-time ownership check and allocates nothing on notifications; unchanged availability does not render. A refused follow check may cause one bounded completion wake. Lighthouse measures startup; provider/handoff latency and the full provider/browser matrix are not measured. The recordings retain their reviewed source revisions and illustrate the same interaction.

Checklist

  • I reviewed my own changes
  • Relevant tests have been added or updated
  • Existing relevant tests pass
  • The change does not introduce new warnings or errors
  • User-facing or complex behavior is documented where necessary
  • Required dependency changes have been merged/published: N/A
  • Required documentation PR: N/A

Copilot AI balanced review requested due to automatic review settings November 18, 2026 19:37

Copy link
Copy Markdown
Collaborator Author

@codex review

Copy link
Copy Markdown
Collaborator Author

/quality check-all

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-19T01:51:50.310045Z fdb75af 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.

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Quality report

Outdated: this request is for an earlier PR commit.

Gate: open. The selected checks completed. Scores and risk levels are advisory.

Status: completed (success). Actions run, attempt 1.

  • Commit: 454b95e04b485eecccf34188e210e95484bdcbe6
  • Requested by: @dustinhealy
  • Check: check-all
  • Scopes: data-schemas, api, server
  • Static mutants: off
  • Change risk: data-schemas, api, server
  • Mutation testing (experimental, data-schemas only): data-schemas (four shards)

No report data: the quality report job did not upload its findings.

No report jobs have started. A successful empty selection means no supported source changed.

Run page

The gate opens only when the workflow, source selection, tooling verification, and every report job succeed. A report job fails on a failed test in its workspace's own Jest run, a tool error, a job timeout, or an incomplete mutation report, including a mutation shard that reaches its execution budget. A cancelled workflow keeps the gate closed. Scores are advisory. A change-risk file marked incomplete or unavailable, for example by a failed api/ source-alias suite, does not close the gate.

@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: 454b95e04b

ℹ️ 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".

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Refetch errors can prematurely consume handoffs without sending, and pending questions can be lost when users close or switch chats.

3 open issues
What changed in this PR

This PR makes side-chat continuations wait for destination readiness after the transcript loads, connecting the app’s existing query cache to the shared chat host.

Changes:

  • Adds reactive admission states for automatic handoffs without starting new requests.
  • Delays pending handoffs, keeps blocked or rejected submissions as drafts, and cancels automatic submission when the composer is edited.
  • Adds regression coverage for delayed destination details, draft handling, conversation switches, and unmounting.
File Description
packages/​chat/​src/​react/​chat/​index.ts Exports the readiness type.
packages/​chat/​src/​react/​chat/​host.tsx Adds optional readiness to host turn services.
packages/​chat/​src/​react/​chat/​driven.ts Exposes readiness through the driven chat contract.
packages/​chat/​src/​components/​side/​panel.tsx Gates automatic handoffs and cancels them on edits.
packages/​chat/​src/​components/​side/​__tests__/​panel.spec.tsx Covers readiness waits and handoff lifecycle behavior.
e2e/​specs/​mock/​subagent-activity.spec.ts Delays destination details in the browser regression.
client/​src/​hooks/​Chat/​services.ts Supplies app readiness to shared turn services.
client/​src/​hooks/​Chat/​ask/​readiness.ts Observes cached endpoint and target query states.
client/​src/​hooks/​Chat/​__tests__/​services.readCodeInputs.spec.tsx Wraps cache updates in React test actions.
client/​src/​hooks/​Chat/​__tests__/​readiness.spec.tsx Tests readiness transitions and relevant cache updates.

Review effort: Balanced

Comment thread client/src/hooks/Chat/ask/readiness.ts Resolved
Comment thread client/src/hooks/Chat/ask/readiness.ts Resolved
@dustinhealy

Copy link
Copy Markdown
Collaborator Author

@codex review

@dustinhealy

Copy link
Copy Markdown
Collaborator Author

/quality check-all

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Quality report

Outdated: this request is for an earlier PR commit.

Gate: open. The selected checks completed. Scores and risk levels are advisory.

Status: completed (success). Actions run, attempt 1.

  • Commit: e60d162c0b3062095c83c0629a6b6d736d5cf7df
  • Requested by: @dustinhealy
  • Check: check-all
  • Scopes: data-schemas, api, server
  • Static mutants: off
  • Change risk: data-schemas, api, server
  • Mutation testing (experimental, data-schemas only): data-schemas (four shards)

No report data: the quality report job did not upload its findings.

No report jobs have started. A successful empty selection means no supported source changed.

Run page

The gate opens only when the workflow, source selection, tooling verification, and every report job succeed. A report job fails on a failed test in its workspace's own Jest run, a tool error, a job timeout, or an incomplete mutation report, including a mutation shard that reaches its execution budget. A cancelled workflow keeps the gate closed. Scores are advisory. A change-risk file marked incomplete or unavailable, for example by a failed api/ source-alias suite, does not close the gate.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: e60d162c0b

ℹ️ 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".

@dustinhealy
dustinhealy marked this pull request as ready for review November 18, 2026 21:02
@dustinhealy
dustinhealy requested a balanced review from Copilot November 18, 2026 21:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Handoffs can send before readiness settles, automatically send a preserved or stopped draft, and leave duplicate drafts after promotion.

4 open issues
3 resolved since last review

Review effort: Balanced

Comment thread client/src/hooks/Chat/ask/readiness.ts Resolved
Comment thread packages/chat/src/react/side/state.ts Resolved
Comment thread packages/chat/src/react/side/state.ts Resolved
@dustinhealy

Copy link
Copy Markdown
Collaborator Author

@codex review

@dustinhealy

Copy link
Copy Markdown
Collaborator Author

/quality check-all

@dustinhealy
dustinhealy requested a balanced review from Copilot November 18, 2026 21:48
@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Quality report

Outdated: this request is for an earlier PR commit.

Gate: open. The selected checks completed. Scores and risk levels are advisory.

Status: completed (success). Actions run, attempt 1.

  • Commit: 30cfdc7e61678bb39fe36a5a8a6693cf0dcafb29
  • Requested by: @dustinhealy
  • Check: check-all
  • Scopes: data-schemas, api, server
  • Static mutants: off
  • Change risk: data-schemas, api, server
  • Mutation testing (experimental, data-schemas only): data-schemas (four shards)

No report data: the quality report job did not upload its findings.

No report jobs have started. A successful empty selection means no supported source changed.

Run page

The gate opens only when the workflow, source selection, tooling verification, and every report job succeed. A report job fails on a failed test in its workspace's own Jest run, a tool error, a job timeout, or an incomplete mutation report, including a mutation shard that reaches its execution budget. A cancelled workflow keeps the gate closed. Scores are advisory. A change-risk file marked incomplete or unavailable, for example by a failed api/ source-alias suite, does not close the gate.

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: 30cfdc7e61

ℹ️ 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".

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Ordinary cleanup can lose withdrawn text, and pending workspace admission can cause an automatic ask to be consumed without being sent.

1 open issue
1 previously missed issue

In code that hasn't changed since last review

Medium severity Wait for workspace readiness before consuming handoff intent

client/​src/​hooks/​Chat/​ask/​readiness.ts:33

[P2] For a destination with an attached code workspace, or one using the legacy workspace protocol, agent details can finish loading while environment-status queries are still pending. This returns ready, but resolveTurnCode rejects the automatic ask and the panel consumes its intent, leaving the question unsent even after the workspace becomes ready. Include pending workspace admission in handoff readiness while keeping terminal refusals as editable drafts.

4 resolved since last review

Review effort: Balanced

Comment thread packages/chat/src/react/follow.ts Resolved
@dustinhealy

Copy link
Copy Markdown
Collaborator Author

@codex review

@dustinhealy
dustinhealy requested a balanced review from Copilot November 18, 2026 22:47
@dustinhealy

Copy link
Copy Markdown
Collaborator Author

/quality check-all

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Quality report

Outdated: this request is for an earlier PR commit.

Gate: open. The selected checks completed. Scores and risk levels are advisory.

Status: completed (success). Actions run, attempt 1.

  • Commit: 5cf90ad678000330ad8099357d40c1b4474fa8b5
  • Requested by: @dustinhealy
  • Check: check-all
  • Scopes: data-schemas, api, server
  • Static mutants: off
  • Change risk: data-schemas, api, server
  • Mutation testing (experimental, data-schemas only): data-schemas (four shards)

No report data: the quality report job did not upload its findings.

No report jobs have started. A successful empty selection means no supported source changed.

Run page

The gate opens only when the workflow, source selection, tooling verification, and every report job succeed. A report job fails on a failed test in its workspace's own Jest run, a tool error, a job timeout, or an incomplete mutation report, including a mutation shard that reaches its execution budget. A cancelled workflow keeps the gate closed. Scores are advisory. A change-risk file marked incomplete or unavailable, for example by a failed api/ source-alias suite, does not close the gate.

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: 5cf90ad678

ℹ️ 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".

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Automatic handoffs mishandle pending catalog and workspace fetches, remain armed after some manual submissions, and may fail to retry after history revalidation.

4 open issues
1 resolved since last review

Review effort: Balanced

Comment thread packages/chat/src/core/code/turn.ts Resolved
Comment thread packages/chat/src/react/chat/turns.ts Resolved
@dustinhealy

Copy link
Copy Markdown
Collaborator Author

@codex review

@dustinhealy
dustinhealy requested a balanced review from Copilot November 18, 2026 23:56
@dustinhealy

Copy link
Copy Markdown
Collaborator Author

/quality check-all

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Quality report

Outdated: this request is for an earlier PR commit.

Gate: open. The selected checks completed. Scores and risk levels are advisory.

Status: completed (success). Actions run, attempt 1.

  • Commit: 9fc1027a6338d0ab49be4400d76f64f44e490e66
  • Requested by: @dustinhealy
  • Check: check-all
  • Scopes: data-schemas, api, server
  • Static mutants: off
  • Change risk: data-schemas, api, server
  • Mutation testing (experimental, data-schemas only): data-schemas (four shards)

No report data: the quality report job did not upload its findings.

No report jobs have started. A successful empty selection means no supported source changed.

Run page

The gate opens only when the workflow, source selection, tooling verification, and every report job succeed. A report job fails on a failed test in its workspace's own Jest run, a tool error, a job timeout, or an incomplete mutation report, including a mutation shard that reaches its execution budget. A cancelled workflow keeps the gate closed. Scores are advisory. A change-risk file marked incomplete or unavailable, for example by a failed api/ source-alias suite, does not close the gate.

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: 9fc1027a63

ℹ️ 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".

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Comment thread client/src/hooks/Agents/useAgentsMap.ts Resolved
Comment thread packages/chat/src/react/chat/driven.ts Resolved
Comment thread packages/chat/src/react/chat/turns.ts Resolved
Comment thread packages/chat/src/react/chat/turns.ts Resolved
@dustinhealy

Copy link
Copy Markdown
Collaborator Author

@codex review

@dustinhealy
dustinhealy requested a balanced review from Copilot November 19, 2026 01:11
@dustinhealy

Copy link
Copy Markdown
Collaborator Author

/quality check-all

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Quality report

Outdated: this request is for an earlier PR commit.

Gate: open. The selected checks completed. Scores and risk levels are advisory.

Status: completed (success). Actions run, attempt 1.

  • Commit: 728545533e94262270c0ac7b0de18c3b664379cf
  • Requested by: @dustinhealy
  • Check: check-all
  • Scopes: data-schemas, api, server
  • Static mutants: off
  • Change risk: data-schemas, api, server
  • Mutation testing (experimental, data-schemas only): data-schemas (four shards)

No report data: the quality report job did not upload its findings.

No report jobs have started. A successful empty selection means no supported source changed.

Run page

The gate opens only when the workflow, source selection, tooling verification, and every report job succeed. A report job fails on a failed test in its workspace's own Jest run, a tool error, a job timeout, or an incomplete mutation report, including a mutation shard that reaches its execution budget. A cancelled workflow keeps the gate closed. Scores are advisory. A change-risk file marked incomplete or unavailable, for example by a failed api/ source-alias suite, does not close the gate.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

Reviewed commit: 728545533e

ℹ️ 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".

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Pending-action restoration can leave subscribers with stale availability, while deferred commit can cancel and suppress updates to a replacement upload sharing the same ID.

2 open issues
4 resolved since last review

Review effort: Balanced

Comment thread packages/chat/src/core/chat.ts Resolved
Comment thread packages/chat/src/react/chat/turns.ts Resolved
@dustinhealy

Copy link
Copy Markdown
Collaborator Author

@codex review

@dustinhealy
dustinhealy requested a balanced review from Copilot November 19, 2026 01:49
@dustinhealy

Copy link
Copy Markdown
Collaborator Author

/quality check-all

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Quality report

Gate: open. The selected checks completed. Scores and risk levels are advisory.

Status: completed (success). Actions run, attempt 1.

  • Commit: fdb75af05a702da0557c08622e6c51cf940cc2be
  • Requested by: @dustinhealy
  • Check: check-all
  • Scopes: data-schemas, api, server
  • Static mutants: off
  • Change risk: data-schemas, api, server
  • Mutation testing (experimental, data-schemas only): data-schemas (four shards)

No report data: the quality report job did not upload its findings.

No report jobs have started. A successful empty selection means no supported source changed.

Run page

The gate opens only when the workflow, source selection, tooling verification, and every report job succeed. A report job fails on a failed test in its workspace's own Jest run, a tool error, a job timeout, or an incomplete mutation report, including a mutation shard that reaches its execution budget. A cancelled workflow keeps the gate closed. Scores are advisory. A change-risk file marked incomplete or unavailable, for example by a failed api/ source-alias suite, does not close the gate.

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: fdb75af05a

ℹ️ 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".

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Releasing IDs individually synchronously rewrites the full ledger for each alias, causing 20 writes for ten ID pairs instead of one guarded batch release.

1 open issue
2 resolved since last review

Review effort: Balanced

Comment on lines +396 to +397
for (const id of new Set(fileEffects.submittedFileIds)) {
if (id && (durableIds?.has(id) || ownsFile(id))) services.releaseFiles([id]);
@dustinhealy

Copy link
Copy Markdown
Collaborator Author

#18480 fixed the side-chat send-readiness issue. Closing this PR in favor of a focused follow-up that preserves the question as a draft when the pane is closed, switched, or opened as the main chat while the destination is loading.

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.

2 participants