Skip to content

fix(web-ui): isolate input history per session#133

Merged
GCWing merged 2 commits intoGCWing:mainfrom
litunan:fix/input-history-per-session
Mar 13, 2026
Merged

fix(web-ui): isolate input history per session#133
GCWing merged 2 commits intoGCWing:mainfrom
litunan:fix/input-history-per-session

Conversation

@litunan
Copy link
Contributor

@litunan litunan commented Mar 13, 2026

  • Modify inputHistoryStore to store history by sessionId instead of global
  • Add sessionId parameter to addMessage, getMessage, getCount, getSessionHistory
  • Update ChatInput.tsx to use session-scoped history
  • Reset historyIndex when switching sessions
  • Add migration from old global format to new session-scoped format (v2)
    Fixes 输入历史应在各会话间独立,方向键导航混乱 #132

- Modify inputHistoryStore to store history by sessionId instead of global
- Add sessionId parameter to addMessage, getMessage, getCount, getSessionHistory
- Update ChatInput.tsx to use session-scoped history
- Reset historyIndex when switching sessions
- Add migration from old global format to new session-scoped format (v2)
@litunan litunan force-pushed the fix/input-history-per-session branch from 39e5669 to d1b43a4 Compare March 13, 2026 03:23
@GCWing GCWing merged commit 0ac5df9 into GCWing:main Mar 13, 2026
4 checks passed
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