fix(ai,coding-agent): preserve non-vision image placeholders closes #3429

This commit is contained in:
Mario Zechner
2026-04-20 16:52:27 +02:00
parent 74139c3f66
commit 2f4f283cc2
11 changed files with 184 additions and 123 deletions

View File

@@ -98,7 +98,7 @@ export class AgentSessionRuntime {
targetSessionFile?: string,
): Promise<{ cancelled: boolean }> {
const runner = this.session.extensionRunner;
if (!runner?.hasHandlers("session_before_switch")) {
if (!runner.hasHandlers("session_before_switch")) {
return { cancelled: false };
}
@@ -115,7 +115,7 @@ export class AgentSessionRuntime {
options: { position: "before" | "at" },
): Promise<{ cancelled: boolean }> {
const runner = this.session.extensionRunner;
if (!runner?.hasHandlers("session_before_fork")) {
if (!runner.hasHandlers("session_before_fork")) {
return { cancelled: false };
}