Skip to content

Add Hook for Autofocus on Agent Interface - #800

Merged
AbhinRustagi merged 1 commit into
mainfrom
ar-agent-composer-autofocus
Jul 23, 2026
Merged

Add Hook for Autofocus on Agent Interface#800
AbhinRustagi merged 1 commit into
mainfrom
ar-agent-composer-autofocus

Conversation

@AbhinRustagi

@AbhinRustagi AbhinRustagi commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Adds a hook that auto-focuses the text input on Welcome Screen & on thread switch. Disabled for mobiles to prevent automatic keyboard pop.

Should be merged with #802, #790 and changes for background requests.

Why not HTML autofocus attribute?

Composer is mounted persistently and only becomes visible via CSS, so autofocus won't re-fire.

Closes TH-2390.

@AbhinRustagi
AbhinRustagi marked this pull request as ready for review July 21, 2026 18:47
@AbhinRustagi AbhinRustagi self-assigned this Jul 21, 2026
@ankit-thesys
ankit-thesys self-requested a review July 22, 2026 07:10

@ankit-thesys ankit-thesys 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.

Looks Good

@AbhinRustagi
AbhinRustagi enabled auto-merge (squash) July 23, 2026 07:32
@AbhinRustagi
AbhinRustagi merged commit fc686ee into main Jul 23, 2026
2 checks passed
@AbhinRustagi
AbhinRustagi deleted the ar-agent-composer-autofocus branch July 23, 2026 07:33
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