happier icon indicating copy to clipboard operation
happier copied to clipboard

Keep the composer focused after clicking Send

Open Wabull opened this issue 2 weeks ago • 1 comments

Suggestion

After sending a message, keep keyboard focus in the composer so users can immediately type and send a follow-up without reaching for the mouse again.

Reported reproduction

Zac confirmed this behavior in his Happier session:

  1. Click the composer and type a message.
  2. Click Send.
  3. Try to type another message immediately.

Actual: The composer loses focus. The user must click the text box again before typing.

Expected: After a successful send, the cleared composer retains or regains focus, allowing a continuous type → send → type workflow. Subsequent background updates should not steal focus from a different control the user has deliberately selected.

Verification and related issue

This reproduction was confirmed by Zac; it has not been independently reproduced by the assistant filing this report. An isolated test-session launch timed out before the send-flow test could run.

Possibly related to #885, which describes focus loss during tool-call/thinking updates. This report specifically concerns clicking Send; the underlying cause has not been established.

Wabull avatar Nov 12 '26 06:11 Wabull

Thanks for reporting this—the click-Send reproduction exposed a gap in the existing pin and composer focus setting. Keeping focus previously only skipped blurring; clicking Send could already have moved focus onto the button.

Fixed in https://github.com/happier-dev/happier/commit/b20ff3a62debcc007740415c537db79c10b15708, with the successful-send regression strengthened in https://github.com/happier-dev/happier/commit/adaa5f442be5f7a594905ac9ba1d289a982a8d17. When the preference is enabled, Send now restores composer focus during the send gesture. Completing the request does not steal focus if you deliberately moved elsewhere. The same correction is also applied and committed in the 0.3 development line through its existing focus policy.

The 0.2 browser regression and focused tests passed, as did 95 focused composer tests in 0.3. Broader 0.3 typecheck/load failures were outside this correction, and its browser setup timed out waiting on shared build locks. Those remain disclosed validation gaps; physical mobile keyboards and packaged desktop webviews were not tested live.

Marking this complete in source and clearing needs:maintainer. Release availability remains to be confirmed.

Posted on behalf of @leeroybrun.

happier-bot avatar Nov 15 '26 12:11 happier-bot