Idea detail
search_add_to_chat
reqlan rq/extension/local-context/activitybar-panels/search.rq:213
Summary
From each search_pane hit, a split **Add to chat** control:
- Primary button: place compact `#requirement` context into the **current** chat input without submitting.
- ▾ menu ( visible secondary affordance ): **Add to current chat** or **Add to new chat** ( new session, then seed the same payload ).
Tooltips name both behaviours; secondary is not right-click-only.
Same payload shape as add_to_chat ( idea name, path: line, summary ) via open-chat.ts.
Host: open-chat.ts with `{ query, isPartialQuery: true, target: 'current' | 'new' }`.
Cursor note: do not use `workbench.action.chat.open` for **current** ( it always opens a new tab ); see add_to_chat / open-chat.ts.
Clipboard fallback when no chat command is available ( same spirit as add_to_chat ).
Wire: AddToChatButton.svelte / SearchPane.svelte → app.svelte.ts `addToChat(hit, target)` → activity-bar-messages.ts → activity-bar-webview-provider.ts → open-chat.ts.
Navigation
Attributes
Ancestor context
No ancestor chain recorded.
Outbound references
Inbound references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| references | add_to_chat | reqlan rq/extension/agent/features-ai.rq | search_add_to_chat |
| references | search_pane | reqlan rq/extension/local-context/activitybar-panels/search.rq | search_add_to_chat |
Unresolved references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| None | |||
Local graph
Initialising graph…