docs: Document session history workspace filtering (ListHistoryOptions.workspaceDirectory)
Summary
PR #11813 added an optional workspaceDirectory field to ListHistoryOptions so callers can scope session lists to a specific workspace. This feature helps with multi-window usage by allowing sessions to be filtered by workspace instead of showing all sessions from all projects mixed together.
What needs to be documented
- Document the session history filtering capability for developers/integrators
- Explain how the workspace directory filtering works (case-insensitive comparison)
- Document the API change for
ListHistoryOptionsin the appropriate reference section
Related PR
- PR: #11813 - feat: filter session history by workspace directory
- Merged: March 27, 2026
- Fixes: #9936
Technical Details
- Added
workspaceDirectory?: stringtoListHistoryOptionsincore/protocol/core.ts - Filter is applied before pagination in
HistoryManager.list() - Case-insensitive comparison
- Omitting the field returns all sessions (backward compatible)
This issue hasn't been updated in 90 days and will be closed after an additional 10 days without activity. If it's still important, please leave a comment and share any new information that would help us address the issue.
This issue hasn't been updated in 90 days and will be closed after an additional 10 days without activity. If it's still important, please leave a comment and share any new information that would help us address the issue.
This issue was closed because it wasn't updated for 10 days after being marked stale. If it's still important, you are welcome to leave a comment and this will keep the issue open. However please note that this repo is no longer being actively maintained.