Skip to content

[BUG] AIAssistant docs describe a default-system-prompt/model fallback that does not exist for macro commands #1620

Description

@chhoumann

Describe the bug

docs/src/content/docs/docs/AIAssistant.md:50 documents that a macro AI Assistant command without its own system prompt falls back to the live default system prompt. It does not: AIAssistantCommand's constructor snapshots defaults.defaultSystemPrompt at creation time (AIAssistantCommand.ts:34), and MacroChoiceEngine passes command.systemPrompt with no fallback. The same applies to the default model at :48.

Consequence

Editing "Default system prompt" (or the default model) in settings silently does nothing to existing macro AI commands - only newly created commands and the quickAddApi.ai.* script APIs read the live default. A user following the docs will edit the default and believe all their macros changed.

Fix shape

Either document the snapshot behavior honestly (and when each surface reads the live default), or - if the snapshot is judged a bug - change the command to fall back at run time, which is a behavior change that needs its own decision. The docs fix is the safe first step. Anchors are frozen; keep existing {#id}s.

Found during the #1571/#1572 triage investigation (see #1572 for the full call-site map).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocumentationImprovements or additions to documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions