fix: prioritize selected claw shortcut
This commit is contained in:
parent
e76c983e64
commit
1d0af8c2d8
@ -4868,12 +4868,8 @@ export function CanvasChatPanel({
|
||||
? {
|
||||
...session,
|
||||
mode,
|
||||
clawdSkillTagId:
|
||||
mode === "clawd" ? session.clawdSkillTagId || null : null,
|
||||
clawdSkillTagPromptApplied:
|
||||
mode === "clawd"
|
||||
? session.clawdSkillTagPromptApplied === true
|
||||
: false,
|
||||
clawdSkillTagId: null,
|
||||
clawdSkillTagPromptApplied: false,
|
||||
updatedAt: Date.now(),
|
||||
}
|
||||
: session
|
||||
@ -9847,9 +9843,10 @@ export function CanvasChatPanel({
|
||||
const textContent = normalizeClawdComposerText(input);
|
||||
const tableFilesSnapshot = [...clawdTableFiles];
|
||||
const hasTableFiles = tableFilesSnapshot.length > 0;
|
||||
const clawdSkillTagForRequest = activeClawdSkillTag || selectedSkillTag;
|
||||
const clawdSkillTagForRequest = selectedSkillTag || activeClawdSkillTag;
|
||||
const shouldIncludeClawdSkillTagPrompt = Boolean(
|
||||
clawdSkillTagForRequest && !activeClawdSkillTagPromptApplied
|
||||
clawdSkillTagForRequest &&
|
||||
(selectedSkillTag || !activeClawdSkillTagPromptApplied)
|
||||
);
|
||||
const clawdSkillTagPrompt = shouldIncludeClawdSkillTagPrompt
|
||||
? buildClawdSkillTagPrompt(clawdSkillTagForRequest)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user