Skip to content

feat: Add prompt history to task input and fix command center text selection#1335

Merged
charlesvien merged 5 commits intomainfrom
03-26-add_prompt_history_to_task_input_and_fix_command_center_text_selection
Mar 30, 2026
Merged

feat: Add prompt history to task input and fix command center text selection#1335
charlesvien merged 5 commits intomainfrom
03-26-add_prompt_history_to_task_input_and_fix_command_center_text_selection

Conversation

@charlesvien
Copy link
Copy Markdown
Member

@charlesvien charlesvien commented Mar 26, 2026

Problem

Task input page has no prompt history navigation, and selecting text in the command center loses its highlight on selection.

CleanShot 2026-03-26 at 09 40 37@2x

Changes

  1. Add persisted task input history store (last 50 prompts, deduped)
  2. Generalize prompt history store to accept history arrays instead of task IDs
  3. Wire up/down arrow navigation on the task input page via getPromptHistory
  4. Update placeholder to mention ↑↓ for history
  5. Fix command center click handler to skip focus steal when text is selected

How did you test this?

Manually

Copy link
Copy Markdown
Member Author

charlesvien commented Mar 26, 2026

@charlesvien charlesvien changed the title Add prompt history to task input and fix command center text selection feat: Add prompt history to task input and fix command center text selection Mar 26, 2026
@charlesvien charlesvien marked this pull request as ready for review March 26, 2026 09:38
@charlesvien charlesvien force-pushed the 03-26-add_prompt_history_to_task_input_and_fix_command_center_text_selection branch from a0ab153 to 6e486a5 Compare March 28, 2026 18:32
@charlesvien charlesvien force-pushed the 03-26-only_send_1m_context_beta_header_for_supported_models branch from 369295d to 2b7f311 Compare March 28, 2026 18:32
@charlesvien charlesvien mentioned this pull request Mar 28, 2026
@charlesvien charlesvien force-pushed the 03-26-only_send_1m_context_beta_header_for_supported_models branch from 2b7f311 to e730c32 Compare March 29, 2026 08:59
@charlesvien charlesvien force-pushed the 03-26-add_prompt_history_to_task_input_and_fix_command_center_text_selection branch from 6e486a5 to 4db14f5 Compare March 29, 2026 08:59
@charlesvien charlesvien force-pushed the 03-26-only_send_1m_context_beta_header_for_supported_models branch from e730c32 to 701ca09 Compare March 30, 2026 14:45
@charlesvien charlesvien force-pushed the 03-26-add_prompt_history_to_task_input_and_fix_command_center_text_selection branch from d90518c to 84055ab Compare March 30, 2026 14:45
Copy link
Copy Markdown
Member Author

charlesvien commented Mar 30, 2026

Merge activity

  • Mar 30, 2:57 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Mar 30, 3:00 PM UTC: Graphite rebased this pull request as part of a merge.
  • Mar 30, 3:07 PM UTC: @charlesvien merged this pull request with Graphite.

@charlesvien charlesvien changed the base branch from 03-26-only_send_1m_context_beta_header_for_supported_models to graphite-base/1335 March 30, 2026 14:58
@charlesvien charlesvien changed the base branch from graphite-base/1335 to main March 30, 2026 14:58
@charlesvien charlesvien force-pushed the 03-26-add_prompt_history_to_task_input_and_fix_command_center_text_selection branch from 84055ab to ebadeda Compare March 30, 2026 14:59
@charlesvien charlesvien merged commit 1934495 into main Mar 30, 2026
16 checks passed
@charlesvien charlesvien deleted the 03-26-add_prompt_history_to_task_input_and_fix_command_center_text_selection branch March 30, 2026 15:07
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