Skip to content

Fix the production canary's Ask model picker step - #282

Merged
Programcode merged 1 commit into
mainfrom
t3/fix-canary-ask-model-picker
Oct 30, 2026
Merged

Programcode merged 1 commit into
mainfrom
t3/fix-canary-ask-model-picker

Conversation

@Programcode

@Programcode Programcode commented Oct 30, 2026 •

Copy link
Copy Markdown
Owner

The scheduled Production canary fails on e2e/production/canary.spec.ts "the canary account gets a streamed answer from a real model" (run 41064327840, both attempts). pickBasicDefault(page, "ask") waits 30 s for the Select AI model for ask combobox and never finds it.

Cause. On /app/ask, the model picker sits inside the Options popover in AskChat.tsx, and that popover starts closed, so the combobox isn't on the page until someone opens Options. The app works; the test skipped a step. The AI tests in the canary run only on the daily schedule, and earlier scheduled runs were blocked on billing, so this is the first real run since the picker moved.

Fix. The test now clicks the Options button first, picks Claude Haiku 5.5, and presses Escape to close the popover before typing. The live research spec and the verify-debatelab recipes already open this popover the same way. The test also waits up to 90 s for the stream but had the 30 s default test timeout, so it now sets 120 s, as the generate test sets its own.

Checks.

  • The same steps passed against the local app (verify-debatelab, fake provider) on desktop-chromium and mobile-chromium. That run sent a message and got event: final from ai-stream, and it confirmed the picker is gone from the page once the popover closes.
  • npm run verify passed at this head.
  • Not run: the production canary itself, which needs the canary secrets that only CI has. The next scheduled canary, or a manual dispatch, is the real proof.

Test-only change. Left unmerged on request; Adam merges.

🤖 Generated with Claude Code

The production canary's streamed-answer test looked for the Ask model
picker on the page, but Ask keeps it in the Options popover, which starts
closed. Open Options first, pick Claude Haiku 5.5, then close it before
typing. The test also waits up to 90 s for the stream, so give it its own
120 s timeout instead of the 30 s default.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 30, 2026 13:48
@coderabbitai

coderabbitai Bot commented Oct 30, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 38 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
Commits

Reviewing files that changed from the base of the PR and between e237d9f and a4e160c.

Files selected for processing: 1
  • e2e/production/canary.spec.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@Programcode
Programcode merged commit ef02db7 into main Oct 30, 2026
6 checks passed
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.

2 participants