fix(mattermost): inherit agent block-streaming default in button/model-picker paths

When account.blockStreaming is unset, pass undefined instead of false for
disableBlockStreaming so downstream get-reply-directives inherits the
agent-level default rather than forcing block streaming on.

Affected paths: button-click interactions (handleInteractiveMenuInteraction)
and model picker confirmations (handleModelPickerInteraction).

slash-http.ts already used undefined correctly; this brings monitor.ts
into alignment.

Addresses Codex P2 review: 'Preserve inherited block-streaming default
for model picker replies' and 'Preserve default block-streaming behavior
for button replies'.
This commit is contained in:
teconomix 2026-03-14 06:04:44 +00:00
parent 9f29865224
commit ec10de7361

View File

@ -518,7 +518,7 @@ export async function monitorMattermostProvider(opts: MonitorMattermostOpts = {}
replyOptions: {
...replyOptions,
disableBlockStreaming:
typeof account.blockStreaming === "boolean" ? !account.blockStreaming : false,
typeof account.blockStreaming === "boolean" ? !account.blockStreaming : undefined,
onModelSelected,
},
});
@ -731,7 +731,7 @@ export async function monitorMattermostProvider(opts: MonitorMattermostOpts = {}
replyOptions: {
...replyOptions,
disableBlockStreaming:
typeof account.blockStreaming === "boolean" ? !account.blockStreaming : false,
typeof account.blockStreaming === "boolean" ? !account.blockStreaming : undefined,
onModelSelected,
},
}),