fix: default elevated level to 'off' when not allowed
When elevatedAllowed is false (e.g., for heartbeat surface which isn't in any allowFrom list), the elevated level was incorrectly defaulting to 'on', causing bash commands to fail with 'elevated is not available'. Now defaults to 'off' when elevated isn't allowed, so bash works normally without trying to use elevated mode. Fixes: https://github.com/clawdbot/clawdbot/issues/181
This commit is contained in:
parent
378e4c9b6b
commit
77e03a2a90
@ -305,7 +305,7 @@ export async function getReplyFromConfig(
|
||||
(sessionEntry?.elevatedLevel as ElevatedLevel | undefined) ??
|
||||
(agentCfg?.elevatedDefault as ElevatedLevel | undefined) ??
|
||||
"on")
|
||||
: "on";
|
||||
: "off";
|
||||
const resolvedBlockStreaming =
|
||||
agentCfg?.blockStreamingDefault === "off" ? "off" : "on";
|
||||
const resolvedBlockStreamingBreak: "text_end" | "message_end" =
|
||||
|
||||
Loading…
Reference in New Issue
Block a user