Skip to content

Missed a couple of places that hard code J for the newline key#6853

Merged
zanesq merged 1 commit intoblock:mainfrom
trobrock:fix-newline-key
Jan 30, 2026
Merged

Missed a couple of places that hard code J for the newline key#6853
zanesq merged 1 commit intoblock:mainfrom
trobrock:fix-newline-key

Conversation

@trobrock
Copy link
Contributor

Summary

From #5956 there were a couple spots that were missed and don't use the new configuration preventing this from working properly.

Type of Change

  • Feature
  • Bug fix
  • Refactor / Code quality
  • Performance improvement
  • Documentation
  • Tests
  • Security fix
  • Build / Release
  • Other (specify below)

AI Assistance

  • This PR was created or reviewed with AI assistance

Testing

Manual testing locally

Related Issues

Relates to #5956
Discussion: LINK (if any)

Screenshots/Demos (for UX changes)

Before:

After:

Copilot AI review requested due to automatic review settings January 30, 2026 22:23
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a bug from PR #5956 where two locations continued to hardcode the 'j' key for newline entry instead of using the new configurable GOOSE_CLI_NEWLINE_KEY environment variable.

Changes:

  • Updates the key binding setup in input.rs to use get_newline_key() instead of hardcoded 'j'
  • Updates the user hint in completion.rs to dynamically display the configured newline key

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
crates/goose-cli/src/session/input.rs Updates the rustyline key binding to use the configurable newline key instead of hardcoded 'j'
crates/goose-cli/src/session/completion.rs Updates the hint message to display the actual configured newline key (e.g., "Ctrl-N") instead of always showing "Ctrl-J"

Signed-off-by: Trae Robrock <trobrock@gmail.com>
@zanesq zanesq merged commit f76a359 into block:main Jan 30, 2026
18 checks passed
lifeizhou-ap added a commit that referenced this pull request Feb 2, 2026
* main:
  fix: fixed the broken release (#6887)
  feat: Streamable HTTP transport for ACP + goose-acp usage (#6741)
  Add Laminar for Observability (#6514)
  Missed a couple of places that hard code J for the newline key (#6853)
  fix(ui): preserve working directory when creating new chat (#6789)
  blog: add 5 tips for building MCP Apps that work (#6855)
  docs: session isolation (#6846)
  upgrade react and electron to latest (#6845)
  Fix: Small update UI settings prompt injection (#6830)
  Remove autogenerated .gooseignore files that don't belong in repo (#6824)
  Fix case-insensitive matching for builtin extension names (#6825)
  docs: cli newline keybinding (#6823)
  Update version to 1.22.0 (#6821)
  Refactor: move persisting extension to session outside of route (#6685)
  acp: load configured extensions and refactor tests (#6803)
Tyler-Hardin pushed a commit to Tyler-Hardin/goose that referenced this pull request Feb 11, 2026
Tyler-Hardin pushed a commit to Tyler-Hardin/goose that referenced this pull request Feb 11, 2026
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