Repository navigation
test(app): expect /rename in the composer's slash command list - #66453
opencodejr[bot] wants to merge 1 commit into
Conversation
#66396 made /rename a built-in slash command, but the composer slash-order test still expected the old list. Add /rename where the registration order puts it (after the custom /init and /review).
|
This PR doesn't fully meet our contributing guidelines and PR template. What needs to be fixed:
Please edit this PR description to address the above within 72 hours, or it will be automatically closed. If you believe this was flagged incorrectly, please let a maintainer know. |
There was a problem hiding this comment.
The fix is correct. With the base spec, the e2e test fails, and the only difference is the extra /rename. With this change, bunx playwright test e2e/regression/composer.spec.ts -g "built-in order" passes on Linux/chromium. /rename comes from the session.rename command that #66396 made a slash command on purpose, so updating the expected list is the right fix.
The public API is unchanged (test-only change).
No concerns.
Related: #66396
|
This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 72-hour window. Feel free to open a new pull request that follows our guidelines. |
What failed
e2e/regression/composer.spec.ts › lists slash commands in their built-in orderfailed on Linux and Windows (check-test / e2e (*, app-1)). The suggestion list had an extra/renamebetween/reviewand/new.Root cause
#66396 ("regenerate session title with bare /rename") gave the existing
session.renamecommandslash: "rename"andslashArguments: true. That makes it a built-in slash command on purpose. The composer lists the server's custom commands first and then built-ins in the order they're registered. The timeline's commands register before the session commands, so/renamecomes right after the custom/initand/review. The test's expected list was not updated with the feature.Fix
Add
/renameto the test's expected list, in the position where the app now shows it. The app code is unchanged.Verification
cd packages/app && bunx playwright test e2e/regression/composer.spec.ts -g "built-in order" --retries 0passes (1 passed) on Linux with chromium.CI failure:
check-test / e2e (linux, app-1) / [chromium] e2e/regression/composer.spec.ts › lists slash commands in their built-in order,check-test / e2e (windows, app-1) / [chromium] e2e\regression\composer.spec.ts › lists slash commands in their built-in orderfailed 3 runs in a row ondev.dfce183(first failing: run 12662)45b5bd43ac14c0"feat(app): regenerate session title with bare /rename (feat(app): regenerate session title with bare /rename #66396)" (feat(app): regenerate session title with bare /rename #66396) by @opencode-agent[bot]Opened by the CI fix job: it does not merge or push to
dev.Added by the opencode bot (AI-generated).
Related: #66396