Skip to content

M2: Daemon Finalization Handler + CU Metadata Plumbing#6909

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

M2: Daemon Finalization Handler + CU Metadata Plumbing#6909
Jasonnnz merged 1 commit into
feature/qa-video-automationfrom
swarm/qa-video-auto/task-2

Conversation

@Jasonnnz
Copy link
Copy Markdown
Contributor

@Jasonnnz Jasonnnz commented Feb 23, 2026

Implements the full cu_session_finalized handler: stores reportToSessionId and qaMode during CU session creation, injects QA summary into the originating chat session on finalization, cleans up session state. Part of #6899.

Changes

  • assistant/src/daemon/handlers/shared.ts: Added CuSessionMetadata interface and cuSessionMetadata map to HandlerContext
  • assistant/src/daemon/server.ts: Added cuSessionMetadata map instance and plumbed it into handlerContext()
  • assistant/src/daemon/handlers/computer-use.ts:
    • Store reportToSessionId and qaMode from CuSessionCreate into metadata map
    • Implemented full handleCuSessionFinalized: looks up metadata, persists assistant message in reporting session's conversation, streams summary to connected client via assistant_text_delta + message_complete, logs recording metadata for M3, cleans up all CU session state
    • Updated removeCuSessionReferences to clean up metadata map
  • assistant/src/daemon/handlers/index.ts: Re-exported CuSessionMetadata type
  • assistant/src/__tests__/cu-session-finalized.test.ts: New test file with 5 tests covering summary injection, cleanup, missing conversation handling, recording metadata, and metadata storage
  • 10 existing test files: Added cuSessionMetadata: new Map() to HandlerContext mocks

Open with Devin

…bing

Co-Authored-By: Claude <noreply@anthropic.com>
@Jasonnnz Jasonnnz self-assigned this Feb 23, 2026
@Jasonnnz Jasonnnz merged commit 3643c5e into feature/qa-video-automation Feb 23, 2026
@Jasonnnz Jasonnnz deleted the swarm/qa-video-auto/task-2 branch February 23, 2026 15:43
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 4 additional findings in Devin Review.

Open in Devin Review

Comment thread assistant/src/daemon/handlers/computer-use.ts
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: c88702d5e7

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

Addressed in #6912

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

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
…bing (#6909)

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
…bing (#6909)

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
…bing (#6909)

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
…bing (#6909)

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
…bing (#6909)

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