Repository navigation
Add a back button to AI history and open it directly from /history - #320
Merged
Merged
Conversation
Choosing /history from the command suggestions now opens the history list at once instead of completing the text for a second Enter, since the command takes no argument. The history view shows a Back to chat control in the AI header, sharing leaveHistory() with Escape, and the list sits below the header instead of a fixed 28px offset. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
What changes
/historyopens at once: choosing/historyfrom the slash-command suggestions with Up/Down and Return/Enter now opens the history list directly. Before, the first Enter only completed the text to/historyand a second Enter was needed./historytakes no argument, so the completion step added nothing. Partial/clearand/diagnosecompletion is unchanged.← Chatcontrol in the AI header, using the sameBackBaras the reader and calendar detail pages, and the header readsAI · History. Before, Escape was the only way back. The button and Escape both go throughAgentPrompt.leaveHistory(), which returns focus to the prompt field.docs/KEYS.mdrecords the/historybehavior.Before / after
Synthetic offscreen captures of the production
AgentPromptin thetst_agent_interactionharness, using the same 520×600 size, harness colors, software renderer and scale 1 for both. Baseline:mainat31a5bb1. The only visible differences are the← Chatbutton and theAI · Historytitle; the list moves down to clear the button.Screenshot to be attached.
Verification
test_history_back_returns_to_chat: the back button is hidden in chat, shown in History, sits above the list, and clicking it leaves History and focuses the prompt field.test_exact_commands_execute_and_partial_commands_completenow asserts that choosing/historyenters History with an empty field and no agent call.make test-qmlon this branch: 1158 + 6 + 64 passed, 0 failed.make qml-checkexits 0.Security: PASS. This change is presentation only. It adds no backend request, network request or agent dispatch; the existing test asserts that
/historymakes no agent call.Release Notes
/historyin the AI panel opens conversation history immediately.🤖 Generated with Claude Code