Skip to content

Fix M2 + M1-fix review feedback: metadata race + latencyMs type#6912

Merged
Jasonnnz merged 1 commit into
feature/qa-video-automationfrom
swarm/qa-video-auto/task-5
Feb 23, 2026
Merged

Fix M2 + M1-fix review feedback: metadata race + latencyMs type#6912
Jasonnnz merged 1 commit into
feature/qa-video-automationfrom
swarm/qa-video-auto/task-5

Conversation

@Jasonnnz
Copy link
Copy Markdown
Contributor

@Jasonnnz Jasonnnz commented Feb 23, 2026

Summary

  • Metadata race fix: Removed ctx.cuSessionMetadata.delete(sessionId) from removeCuSessionReferences so that onTerminal (which fires before cu_session_finalized) does not delete metadata that handleCuSessionFinalized still needs. Metadata is now explicitly deleted at the end of handleCuSessionFinalized, and also in handleCuSessionAbort and handleCuSessionCreate (replacement case) where no finalized event is expected.
  • In-memory sync: After persisting the CU finalization summary to the conversation store, the handler now also appends it to the in-memory Session.messages array so subsequent turns see the injected summary without a reload.
  • latencyMs type fix: Updated the IPCMemoryRecalled convenience init in IPCMessages.swift from latencyMs: Double to latencyMs: Int to match the generated IPCContractGenerated.swift.

Test plan

  • TypeScript typecheck passes (bunx tsc --noEmit)
  • All tests pass (pre-existing failures are unrelated: browser-manager timeouts, Docker integration, git identity, sandbox parity)
  • Manual: trigger a CU session that produces a finalized summary, verify the summary appears in the reporting chat session

Part of #6899.


Open with Devin

…PCMessages

Co-Authored-By: Claude <noreply@anthropic.com>
@Jasonnnz Jasonnnz self-assigned this Feb 23, 2026
@Jasonnnz Jasonnnz merged commit 01dd00a into feature/qa-video-automation Feb 23, 2026
@Jasonnnz Jasonnnz deleted the swarm/qa-video-auto/task-5 branch February 23, 2026 15:58
Copy link
Copy Markdown

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

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: 45c59c65ff

ℹ️ 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 thread assistant/src/daemon/handlers/computer-use.ts
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

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

Devin Review found 1 potential issue.

View 3 additional findings in Devin Review.

Open in Devin Review

Comment thread assistant/src/daemon/handlers/computer-use.ts
@Jasonnnz
Copy link
Copy Markdown
Contributor Author

Addressed in #6924

Jasonnnz added a commit that referenced this pull request Feb 23, 2026
…PCMessages (#6912)

Co-authored-by: Vellum Assistant <assistant@vellum.ai>
Co-authored-by: Claude <noreply@anthropic.com>
Jasonnnz added a commit that referenced this pull request Feb 23, 2026
…PCMessages (#6912)

Co-authored-by: Vellum Assistant <assistant@vellum.ai>
Co-authored-by: Claude <noreply@anthropic.com>
Jasonnnz added a commit that referenced this pull request Feb 23, 2026
…PCMessages (#6912)

Co-authored-by: Vellum Assistant <assistant@vellum.ai>
Co-authored-by: Claude <noreply@anthropic.com>
Jasonnnz added a commit that referenced this pull request Feb 23, 2026
…PCMessages (#6912)

Co-authored-by: Vellum Assistant <assistant@vellum.ai>
Co-authored-by: Claude <noreply@anthropic.com>
Jasonnnz added a commit that referenced this pull request Feb 23, 2026
…PCMessages (#6912)

Co-authored-by: Vellum Assistant <assistant@vellum.ai>
Co-authored-by: Claude <noreply@anthropic.com>
Jasonnnz added a commit that referenced this pull request Feb 23, 2026
…PCMessages (#6912)

Co-authored-by: Vellum Assistant <assistant@vellum.ai>
Co-authored-by: Claude <noreply@anthropic.com>
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.

1 participant