Skip to content

Support configurable terminal submit keys - #590

Merged
thiblahute merged 3 commits into
powerfooI:mainfrom
piqusy:feat/configurable-terminal-submit
Nov 18, 2026
Merged

thiblahute merged 3 commits into
powerfooI:mainfrom
piqusy:feat/configurable-terminal-submit

Conversation

@piqusy

@piqusy piqusy commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add a browser-local setting for the key sent after a terminal composer or agent chat message.
  • Support Enter, Shift+Enter, Alt+Enter, Ctrl+Enter, and Cmd/Super+Enter. Enter remains the default.
  • Send modified keys through Herdr's pane API. Preserve the draft when a paste fails and warn when key delivery fails after text was sent.

Verification

  • 175 focused tests passed across the composer, chat, and bridge test files.
  • Frontend build and server TypeScript check passed.
  • In an isolated Herdr session, Super+Enter submitted a prompt to oh-my-pi and the agent responded.

Compatibility

The terminal application must support the selected key and have a matching submit binding. The setting is stored per browser and does not change browser-side composer shortcuts.

@github-actions github-actions Bot added the enhancement New feature or request label Nov 13, 2026
piqusy and others added 2 commits November 13, 2026 11:51
One browser-wide submit key sent every message to every pane with it, so
setting Super+Enter for oh-my-pi left Claude Code and shell messages
unsubmitted. The key is now chosen per agent, keyed by the agent name its
panes report, and panes without an agent always get Enter.

- terminalSubmitKey keeps an agent -> key map, read through one list of
  choices (value, label, Herdr key) and a useTerminalSubmitKey hook that
  follows other windows, like composerVim.
- sendTerminalComposerText takes the pane's agent, read at send time in
  the terminal composer, and decides once whether a modified key follows
  the text.
- The global Configuration row is gone: each agent's Submit key sits
  beside its integration in Configuration > Integrations.
- When the text got in but the key did not, the chat keeps the message
  as sent instead of dropping it; the error says to submit it there.
- FEATURES.md describes the feature for users, without Herdr internals.
@thiblahute
thiblahute merged commit ef56cb5 into powerfooI:main Nov 18, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants