Skip to content

Wire QA intent detection in daemon routing + fix epoch units#6941

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

Wire QA intent detection in daemon routing + fix epoch units#6941
Jasonnnz merged 1 commit into
feature/qa-video-automationfrom
swarm/qa-video-auto/task-17

Conversation

@Jasonnnz
Copy link
Copy Markdown
Contributor

@Jasonnnz Jasonnnz commented Feb 23, 2026

P0: Add detectQaIntent() for keyword/pattern matching of QA tasks. Wire it in task_submit and escalation handlers to set qaMode+reportToSessionId on CU sessions. Add qaMode/reportToSessionId to TaskRouted IPC message so clients know to start recording. P1: Fix epoch seconds→ms mismatch in Session.swift finalizeQARecording. P2: Map unknown session status to failed to match TS contract union.


Open with Devin

Co-Authored-By: Claude <noreply@anthropic.com>
@Jasonnnz Jasonnnz self-assigned this Feb 23, 2026
@Jasonnnz Jasonnnz merged commit 250ec4b into feature/qa-video-automation Feb 23, 2026
@Jasonnnz Jasonnnz deleted the swarm/qa-video-auto/task-17 branch February 23, 2026 17:09
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: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 5 additional findings.

Open in Devin Review

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: ddf847cf30

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

screenWidth,
screenHeight,
interactionType: 'computer_use',
reportToSessionId: sourceSessionId,
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 Gate escalation report metadata behind QA finalization support

Setting reportToSessionId on every escalation stores CU metadata for every escalated run, but the macOS client only sends cu_session_finalized when qaMode is true (ComputerUseSession.run), so non-QA escalations never trigger the metadata cleanup path in handleCuSessionFinalized. In long-lived desktop sessions this accumulates stale cuSessionMetadata entries and leaves the new report-linking path effectively incomplete unless QA mode is also enabled.

Useful? React with 👍 / 👎.

const lower = taskText.toLowerCase().trim();

// Direct QA/test commands
if (/^(qa|test|verify|check)\b/.test(lower)) return true;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Narrow QA intent matcher for generic “check” commands

The direct matcher marks any task beginning with check as QA intent, so routine computer-use requests like “check my inbox/calendar/slack” are treated as QA/test workflows even when no testing is intended. That broad trigger can unexpectedly flip sessions into QA-specific behavior and pollute QA/reporting paths for normal user tasks.

Useful? React with 👍 / 👎.

Jasonnnz added a commit that referenced this pull request Feb 23, 2026
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
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
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
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
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
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