GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(app): make prompt submit and newline rebindable by CasualDeveloper · Pull Request #23430 · anomalyco/opencode

Conversation

@CasualDeveloper

@CasualDeveloper CasualDeveloper commented Apr 19, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Issue for this PR

Closes #16226

Related: #11898, #9836

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Makes the web prompt composer submit/newline bindings configurable in the existing Settings → Keyboard Shortcuts screen.

The PR registers two prompt commands:

  • prompt.submit — default enter
  • prompt.newline — default shift+enter

They are registered as disabled command entries, so they appear in settings but do not join the global keymap. The prompt editor handles them locally with settings.keybinds + matchKeybind, preserving current defaults while allowing users to swap or customize the bindings.

No new config schema, settings screen, migration, or SDK generation required.

How did you verify your code works?

  • bun turbo typecheck from packages/app
  • bun test src/i18n/parity.test.ts src/components/prompt-input/submit.test.ts
  • Manual browser walkthrough against the built app, covering default and swapped bindings:
Bindings Key pressed Observed
Default enter submit / shift+enter newline Shift+Enter inserted <br> in the editor
Default enter submit / shift+enter newline Enter on empty composer prevented default, no submit/fetch
Swapped shift+enter submit / enter newline Enter inserted <br> in the editor
Swapped shift+enter submit / enter newline Shift+Enter on empty composer prevented default, no submit/fetch

Also verified the Keyboard Shortcuts UI shows both rows under the Prompt group and reset-to-defaults restores Enter / Shift+Enter.

Screenshots / recordings

Before
Keyboard shortcuts before prompt submit/newline entries

After
Keyboard shortcuts after prompt submit/newline entries

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Notes

  • AI Assistance: OpenCode + openai/gpt-5.5
  • Review: Human-directed the work and ran the browser walkthrough. Code inspected; behavior verified with DOM assertions and fetch monitoring.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

hiraghi and CasualDeveloper reacted with thumbs up emoji
All reactions
  • 👍 2 reactions
Copilot AI review requested due to automatic review settings April 19, 2026 14:23
@CasualDeveloper
CasualDeveloper requested a review from adamdotdevin as a code owner April 19, 2026 14:23
@github-actions github-actions Bot added the contributor label Apr 19, 2026
Copilot started reviewing on behalf of CasualDeveloper April 19, 2026 14:24
View session
@CasualDeveloper CasualDeveloper mentioned this pull request Apr 19, 2026
[FEATURE]: Setting to send prompt only with send button, not hitting enter. #16226
Closed
1 task done
Copilot AI reviewed Apr 19, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Pull request overview

Adds rebindable keybind support for prompt submission vs newline insertion in the web prompt composer by introducing prompt.submit and prompt.newline commands and switching PromptInput’s Enter handling to keybind matching.

Changes:

  • Add two new command titles to the English i18n dictionary.
  • Register prompt.submit / prompt.newline commands with default bindings (Enter / Shift+Enter).
  • Update PromptInput.handleKeyDown to dispatch submit/newline via matchKeybind(...) and stop propagation on matches.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
packages/app/src/i18n/en.ts Adds labels for the two new prompt keybind commands.
packages/app/src/components/prompt-input.tsx Registers new commands and routes Enter handling through configured keybinds.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread packages/app/src/components/prompt-input.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

@CasualDeveloper
CasualDeveloper force-pushed the fix/16226-web-rebindable-prompt-submit branch 3 times, most recently from 1f54966 to 1d745d0 Compare April 25, 2026 22:31
@CasualDeveloper
CasualDeveloper force-pushed the fix/16226-web-rebindable-prompt-submit branch 5 times, most recently from 36cb931 to db3f41c Compare May 3, 2026 14:12
@github-actions github-actions Bot mentioned this pull request May 5, 2026
docs: Document Shift+Enter key binding for Alacritty and Tmux #25830
Closed
3 of 6 tasks
@CasualDeveloper
CasualDeveloper force-pushed the fix/16226-web-rebindable-prompt-submit branch 10 times, most recently from 1215dd4 to 79a921f Compare May 13, 2026 14:38
@CasualDeveloper
CasualDeveloper force-pushed the fix/16226-web-rebindable-prompt-submit branch 4 times, most recently from 26e19b1 to 00bdc4e Compare May 15, 2026 09:12
@CasualDeveloper
fix(app): make prompt submit and newline rebindable
e4a4c8c
Register `prompt.submit` and `prompt.newline` as disabled command entries so they appear in Settings → Keyboard Shortcuts without joining the global keymap. The prompt editor resolves those configured bindings locally via `settings.keybinds` and `matchKeybind`, preserving the defaults: Enter submits and Shift+Enter inserts a newline.

This lets users who compose multi-line prompts swap or customize those bindings without changing the default desktop behavior for existing users.

Related: anomalyco#16226, anomalyco#11898, anomalyco#9836
@CasualDeveloper
CasualDeveloper force-pushed the fix/16226-web-rebindable-prompt-submit branch from 00bdc4e to e4a4c8c Compare May 15, 2026 17:10
@github-actions

github-actions Bot commented May 19, 2026

Copy link
Copy Markdown
Contributor

Automated PR Cleanup

Thank you for contributing to opencode.

Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions.

This PR was closed because it matched the following cleanup criteria:

  • The PR was created more than 1 month ago
  • The PR had fewer than 2 positive reactions
  • Positive reactions are counted as thumbs-up, heart, celebration, or rocket reactions on the PR

PRs created within the last month are not affected by this cleanup.

If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate.

Thanks again for taking the time to contribute.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot closed this May 19, 2026
@github-actions github-actions Bot added the automated-pr-cleanup label May 19, 2026
@CasualDeveloper

CasualDeveloper commented May 20, 2026

Copy link
Copy Markdown
Contributor Author

please reopen this PR. it’s actually ready for merge, and is quite a low impact change. just that maintainers haven’t got around to reviewing it. also the issues it closes have a lot of reactions

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Aug 17, 2026
app: prompt submit and newline shortcuts are not configurable #42981
Closed
[FEATURE]: Make App prompt action shortcuts configurable #43088
Open
feat(app): make prompt action keybinds configurable #43128
Closed
@serhumanos

serhumanos commented Oct 4, 2026

Copy link
Copy Markdown

This will be very useful; in most cases, I hit Enter to add a new line.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ns0116 ns0116 mentioned this pull request Oct 14, 2026
web: on mobile, Enter submits the prompt and no newline can be inserted #55549
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments
@adamdotdevin adamdotdevin Awaiting requested review from adamdotdevin

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

automated-pr-cleanup contributor

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[FEATURE]: Setting to send prompt only with send button, not hitting enter.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@CasualDeveloper @serhumanos
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.