17da0aafe3
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> Co-authored-by: Carlos Florencio <carlosmflorencio@gmail.com>
1.5 KiB
1.5 KiB
id, title, status, wave, depends_on, plan, requirements, acceptance_criteria, system_design
| id | title | status | wave | depends_on | plan | requirements | acceptance_criteria | system_design | ||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 02-mid-turn-attachment-e2e | Cover mid-turn attachment delivery | complete | 1 |
|
plan.md |
|
|
|
Task 02: Cover Mid-Turn Attachment Delivery
Summary
Add one Playwright scenario that uploads a file while a turn is still generating and asserts the agent receives the file contents.
In scope
- Add
apps/web/e2e/tests/chat/mid-turn-attachment.spec.ts. - Start a turn that keeps generating long enough to send a second message.
- Upload and send an attachment during that turn.
- Assert the agent resolves the file contents, not an empty reference.
Out of scope
- Backend changes, which are Task 01.
- Queued-message delivery and delivery-mode coverage, already covered by
apps/web/e2e/tests/chat/attachment-delivery-mode.spec.ts.
Acceptance
- The scenario fails before Task 01 because the attachment resolves empty.
- The scenario passes after Task 01.
- The shared helper keeps the mock turn open for 60 seconds by default, which leaves setup headroom under CI load before the steer is submitted.
Verification
(cd apps/web && pnpm run lint)
make -C apps/backend build
(cd apps/web && pnpm run build:e2e)
(cd apps/web && pnpm e2e:run tests/chat/mid-turn-attachment.spec.ts)
Files likely touched
apps/web/e2e/tests/chat/mid-turn-attachment.spec.ts