Skip to content

feat: prompt history#260

Merged
Dimillian merged 5 commits intoDimillian:mainfrom
ignaciocervino:feat/prompt-history
Jan 27, 2026
Merged

feat: prompt history#260
Dimillian merged 5 commits intoDimillian:mainfrom
ignaciocervino:feat/prompt-history

Conversation

@ignaciocervino
Copy link
Copy Markdown
Contributor

Summary

  • Persist per-thread prompt history to localStorage with a 200-item cap.
  • Load history on thread/workspace switch and restore it after app restart.
  • Migrate “default” history to the first real thread id so new threads keep history.

Simple Feature Explanation

  • The up/down arrow history now survives app restarts and is remembered per thread.
  • When you open a thread, you can recall its past prompts with ArrowUp/ArrowDown.

Limitations

  • Per thread (and per workspace on Home), not global across all agents.
  • Only saves text prompts that were sent/queued; attachments aren’t tracked.
  • Max 200 entries per key; older entries are dropped.
  • Navigation only works when the composer is empty and no attachments; disabled if autocomplete is open or modifier keys are held.
Screen.Recording.2026-01-27.at.01.42.44.mov

@Dimillian
Copy link
Copy Markdown
Owner

@codex review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d01eab0bfa

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/features/composer/hooks/usePromptHistory.ts Outdated
@Dimillian
Copy link
Copy Markdown
Owner

FYI: moving the history to be tied to workspace, so those can be reused across threads

@Dimillian Dimillian merged commit ae6e187 into Dimillian:main Jan 27, 2026
5 checks passed
gersmann pushed a commit to gersmann/codex-monitor-web that referenced this pull request Mar 10, 2026
Co-authored-by: Thomas Ricouard <ricouard77@gmail.com>
zip700 pushed a commit to zip700/CodexMonitor that referenced this pull request Apr 3, 2026
Co-authored-by: Thomas Ricouard <ricouard77@gmail.com>
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