Skip to content

fix(copilot): autofocus message composer - #3047

Open
dcaiwei wants to merge 1 commit into
Chainlit:mainfrom
dcaiwei:fix/copilot-autofocus
Open

dcaiwei wants to merge 1 commit into
Chainlit:mainfrom
dcaiwei:fix/copilot-autofocus

Conversation

@dcaiwei

@dcaiwei dcaiwei commented Sep 17, 2026

Copy link
Copy Markdown

Summary

  • keep the message composer focused when Chainlit runs in copilot mode
  • preserve the existing no-autofocus behavior for the mobile web app
  • add regression coverage for copilot and webapp behavior

Fixes #2944

Testing

  • pnpm --dir frontend test -- MessageComposer.spec.ts
  • pnpm --dir frontend type-check
  • ESLint on the changed files
  • Prettier check on the changed files
  • git diff --check

Summary by cubic

Fixes #2944 so the copilot message composer autofocuses even on mobile, while the web app keeps its existing mobile behavior (no autofocus). Adds regression tests for both copilot and webapp autofocus logic.

Written for commit 78d6003. Summary will update on new commits.

Review in cubic

Co-Authored-By: Codex <codex@openai.com>

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 3 files

Re-trigger cubic

This branch has not been deployed

No deployments
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.

Feature Request: Autofocus in copilot mode

1 participant