[PR #30] [MERGED] feat: Add message history navigation with arrow keys #9507

Closed
opened 2026-02-16 18:13:40 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/30
Author: @ezynda3
Created: 5/17/2025
Status: Merged
Merged: 5/17/2025
Merged by: @adamdotdevin

Base: devHead: message-history


📝 Commits (2)

  • 3c49d13 implement message history nav
  • 7f329fe fix multi-line navigation

📊 Changes

2 files changed (+79 additions, -8 deletions)

View changed files

📝 internal/tui/components/chat/editor.go (+77 -8)
📝 internal/tui/components/chat/messages.go (+2 -0)

📄 Description

Summary

  • Added message history navigation using up/down arrow keys
  • Up arrow navigates to previous messages when cursor is on the first line
  • Down arrow navigates to next messages when cursor is on the last line
  • Preserves normal arrow key functionality for editing multi-line messages

Test plan

  1. Type a message and send it
  2. Type another message and send it
  3. Press up arrow to navigate to previous message
  4. Press down arrow to navigate back
  5. Type a multi-line message using backslash+enter
  6. Verify that arrow keys work normally for editing within the message
  7. Verify that up arrow only navigates to history when on the first line
  8. Verify that down arrow only navigates to history when on the last line

🤖 Generated with opencode


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/30 **Author:** [@ezynda3](https://github.com/ezynda3) **Created:** 5/17/2025 **Status:** ✅ Merged **Merged:** 5/17/2025 **Merged by:** [@adamdotdevin](https://github.com/adamdotdevin) **Base:** `dev` ← **Head:** `message-history` --- ### 📝 Commits (2) - [`3c49d13`](https://github.com/anomalyco/opencode/commit/3c49d13bb9accfba94bb25c2e60684abfdb3ecf9) implement message history nav - [`7f329fe`](https://github.com/anomalyco/opencode/commit/7f329fe4f6f56f2fe25a8eceb0ab66f4b77d21b9) fix multi-line navigation ### 📊 Changes **2 files changed** (+79 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `internal/tui/components/chat/editor.go` (+77 -8) 📝 `internal/tui/components/chat/messages.go` (+2 -0) </details> ### 📄 Description ## Summary - Added message history navigation using up/down arrow keys - Up arrow navigates to previous messages when cursor is on the first line - Down arrow navigates to next messages when cursor is on the last line - Preserves normal arrow key functionality for editing multi-line messages ## Test plan 1. Type a message and send it 2. Type another message and send it 3. Press up arrow to navigate to previous message 4. Press down arrow to navigate back 5. Type a multi-line message using backslash+enter 6. Verify that arrow keys work normally for editing within the message 7. Verify that up arrow only navigates to history when on the first line 8. Verify that down arrow only navigates to history when on the last line 🤖 Generated with opencode --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:13:40 -05:00
yindo closed this issue 2026-02-16 18:13:40 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9507