Idea detail
add_to_chat
reqlan rq/extension/agent/features-ai.rq:40
Summary
A set of command_palette functions that add the selected idea, ideaset, or file to the chat.
Commands: Add Idea / Ideaset / File to **Current** Chat ( primary ) and to **New** Chat ( secondary ); category Reqlan.
Uses the idea / ideaset under the cursor ( or ideas overlapping the editor selection ) when in a. rq file; otherwise QuickPick.
Primary: inject `#requirement` / `#file` context into the **current** chat input without submitting.
Secondary: open a **new** chat / agent session, then seed the same payload into its input.
Discoverability: editor context uses a **Reqlan: Add to Chat** submenu ( current + new for idea / ideaset / file ). Palette titles name Current vs New explicitly.
Host APIs ( Cursor vs VS Code ) — see open-chat helper:
- Cursor: `workbench.action.chat.open` always creates a **new** tab ( `openInNewTab: true` ); do **not** use it for current-chat.
Current = `composer.focusComposer` + paste; New = `composer.createNew({ openInNewTab: true, partialState: { text, richText } })`.
- VS Code Copilot: current = `workbench.action.chat.open` + `isPartialQuery: true`; new = `workbench.action.chat.newChat` then open.
Clipboard fallback when no chat command is available.
Host open helper: open-chat.ts ( `target: 'current' | 'new'` ).
Activity bar search hits: search_add_to_chat — split button with ▾ menu.
Navigation
Attributes
Ancestor context
No ancestor chain recorded.
Outbound references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| references | command_palette | reqlan rq/extension/host/features-commands.rq | command_palette |
| file_reference | "../../../packages/extension/src/agent_module/ai_commands/open-chat.ts" | packages/extension/src/agent_module/ai_commands/open-chat.ts | open-chat.ts |
| references | search_add_to_chat | reqlan rq/extension/local-context/activitybar-panels/search.rq | search_add_to_chat |
| file_reference | "../../../packages/extension/src/agent_module/ai_commands/register-ai-commands.ts" | packages/extension/src/agent_module/ai_commands/register-ai-commands.ts | register-ai-commands.ts |
| file_reference | "../../../packages/extension/package.json" | packages/extension/package.json | package.json |
Inbound references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| references | command_palette | reqlan rq/extension/host/features-commands.rq | add_to_chat |
| references | search_add_to_chat | reqlan rq/extension/local-context/activitybar-panels/search.rq | add_to_chat |
Unresolved references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| None | |||
Local graph
Initialising graph…