Skip to content

fix(web): exit scratchlist mode after successful promote-to-queue send#960

Open
heavygee wants to merge 1 commit into
tiann:mainfrom
heavygee:fix/scratchlist-exit-after-queue-send
Open

fix(web): exit scratchlist mode after successful promote-to-queue send#960
heavygee wants to merge 1 commit into
tiann:mainfrom
heavygee:fix/scratchlist-exit-after-queue-send

Conversation

@heavygee

Copy link
Copy Markdown
Collaborator

Summary

After Send to queue from the scratchlist drawer, scratchlist mode stayed enabled so the next composer send went back into the scratchlist instead of the live agent chat. Promote-to-composer already exited mode (PR #798); promote-to-queue intentionally did not.

This change calls onExitScratchlistMode() when onSend returns true from handlePromoteToQueue. Rejected sends keep mode and the entry.

Test plan

  • web: SessionChat.exit-mode.test.tsx (4 tests) — success exits mode; rejection keeps mode; promote-to-composer unchanged
  • Playwright: e2e/scratchlist-exit-after-queue.spec.ts (2 tests) via isolated fixture
  • Operator dogfood on :3006 — Send to queue drops scratchlist mode; normal follow-up chat works

Issues

Fixes #959

…ann#959)

After Send to queue accepts, call onExitScratchlistMode so the operator
can continue normal chat. Rejected sends keep mode on. Unit + Playwright
smoke coverage.

Co-authored-by: Cursor <cursoragent@cursor.com>

@github-actions github-actions 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.

Findings

  • No findings.

Summary

  • Review mode: initial
  • Reviewed the full latest diff for scratchlist queue promotion behavior, unit coverage, and the isolated Playwright fixture. No Blocker/Major/Minor findings found in added or modified lines.
  • Residual risk: tests could not be executed in this environment because bun is unavailable, so this pass is static review plus coverage inspection.

Testing

  • Not run (automation; bun unavailable in runner).

HAPI Bot

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.

fix(web): exit scratchlist mode after successful promote-to-queue send

1 participant