Skip to content

test: align tui and cli fixtures with interactive resource refactor - #49248

Closed
rekram1-node wants to merge 2 commits into
v2from
fix-tui-form-spy
Closed

rekram1-node wants to merge 2 commits into
v2from
fix-tui-form-spy

Conversation

@rekram1-node

@rekram1-node rekram1-node commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

Type of change

  • Test / chore

What does this PR do?

12e53ee6d4 (refactor(protocol): simplify interactive resources) changed several client surfaces and updated production code, but left test fixtures on the old shapes. The unit CI job fails on the current v2 tip for any PR based on it (for example #49241); v2's own runs were green only because turbo skipped the untouched packages.

Two fixture updates, no runtime code changes:

packages/tuiclient.form.list moved to client.session.form.list. The mock was updated but one assertion in test/mini/stream-v2.transport.test.ts still spied on second.form.list.

packages/cli — the permission reply body field was renamed replydecision, and form cancellation moved from POST …/form/{id}/cancel to DELETE …/form/{id}. test/acp/sse-fixture.ts still read reply (so every reply returned 400) and only routed the old cancel path (so the DELETE 404'd). permission-behavior.test.ts also read body.reply.

How did you verify your code works?

  • bun test test/mini/stream-v2.transport.test.ts in packages/tui: 67/67 (was 66/67).
  • bun test test/acp in packages/cli: 94/94 (was 85/94); full packages/cli suite 261/261.
  • bun x prettier --check clean on the edited cli files.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

12e53ee moved form.list under session.form and updated the fixture
but left one assertion on the old path, so the replacement test failed.
…ELETE

12e53ee renamed the permission reply body field to decision and
moved form cancellation to DELETE /api/session/{id}/form/{formID}, but
the ACP SSE fixture still read reply and only routed the old POST path.
@rekram1-node rekram1-node changed the title test(tui): spy on session.form.list in mini transport replacement test test: align tui and cli fixtures with interactive resource refactor Sep 16, 2026
@rekram1-node
rekram1-node deleted the fix-tui-form-spy branch September 16, 2026 03:58
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