Skip to content

test(app): expect /rename in the composer's slash command list - #66453

Closed
opencodejr[bot] wants to merge 1 commit into
devfrom
opencodejr/ci-fix-45700115274
Closed

opencodejr[bot] wants to merge 1 commit into
devfrom
opencodejr/ci-fix-45700115274

Conversation

@opencodejr

@opencodejr opencodejr Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

What failed

e2e/regression/composer.spec.ts › lists slash commands in their built-in order failed on Linux and Windows (check-test / e2e (*, app-1)). The suggestion list had an extra /rename between /review and /new.

Root cause

#66396 ("regenerate session title with bare /rename") gave the existing session.rename command slash: "rename" and slashArguments: 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 /rename comes right after the custom /init and /review. The test's expected list was not updated with the feature.

Fix

Add /rename to 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 0 passes (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 order failed 3 runs in a row on dev.

Opened by the CI fix job: it does not merge or push to dev.


Added by the opencode bot (AI-generated).

Related: #66396

#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).
@github-actions github-actions Bot added contributor needs:compliance This means the issue will auto-close after 2 hours. labels Nov 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • PR description is missing required template sections. Please use the PR template.

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.

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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

@github-actions

Copy link
Copy Markdown
Contributor

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.

@github-actions github-actions Bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Nov 28, 2026
@github-actions github-actions Bot closed this Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants