Repository navigation
Add the Escape-to-stop composer setting - #2442
Closed
SawyerHood wants to merge 1 commit into
Closed
SawyerHood wants to merge 1 commit into
SawyerHood wants to merge 1 commit into
Conversation
Collaborator
Author
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Human comments
What was wrong
Escape in the composer could only blur it. Users who steer a running thread from the keyboard wanted Escape to stop the running thread instead, without giving up focus.
What changed
composerEscapeBehavior(blur|stop-running-thread, defaultblur) inpackages/domain/src/app-settings.ts, exposed through the settings API/CLI (bb settings), documented indocs/configuration.mdand thebb-cliskill's app-settings reference.PromptBoxInternal/FollowUpPromptBox/ThreadDetailPromptArea/EmbeddedThreadChatthread the behavior to the key handler; Settings → General gets the "Escape in composer" row.No wire change. Prerequisite: #2441 (stack order only; no code dependency).
How you verified
turbo run typecheck;turbo run testfor@bb/app(promptbox, thread-detail, embedded-chat),@bb/server(general settings),@bb/cli(settings output),@bb/db(migrate defaults),@bb/domain.Fixes: none (upstream stack split).