feat(flow-chat): reference idle sessions from chat input - #1721
Merged
Conversation
wsp1911
marked this pull request as ready for review
July 23, 2026 14:15
- Extend the chat input `@` picker to search files, folders, and idle sessions across currently open local and SSH workspaces. - Send selected session locators as structured message metadata and preserve that metadata through the frontend queue. - Materialize bounded, newest-first session transcripts into current-session artifacts only when a turn is dispatched. - Add short collision-safe transcript artifact names, line-range metadata, and a safe-use reminder for agents. - Reject archived, hidden, busy, queued, invalid, or self-referencing sessions.
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.
Summary
@picker to search files, folders, and idle sessions across currently open local and SSH workspaces.Fixes: N/A
Type and Areas
Type:
Feature / UI/UX
Areas:
Rust core, desktop/Tauri, web UI, session persistence
Motivation / Impact
Users can provide another idle session as context without exposing that session's storage directory to agent tools. The agent receives a bounded local artifact and exact index/latest-turn line ranges for targeted
ReadorGrepcalls.Verification
pnpm run fmt:rspnpm run type-check:webcargo check -p bitfun-desktopcargo test -p bitfun-core session_reference_artifact_stems_extend_only_for_collisions -- --nocapturecargo test -p bitfun-core materialized_session_reference_keeps_newest_complete_turn_and_overwrites_artifact -- --nocapturegit diff --checkReviewer Notes
artifacts/session-referencesdirectory.Checklist