Skip to content

The open source coding agent.

TypeScript

fix issue with trailing whitespace error in assistant message

Dax Raad7ed05962dbba
diff --git a/packages/opencode/src/session/index.ts b/packages/opencode/src/session/index.ts
index 7b66710dd51..d4b0fb65a9e 100644
--- a/packages/opencode/src/session/index.ts
+++ b/packages/opencode/src/session/index.ts
@@ -1004,6 +1004,7 @@ export namespace Session {
start: Date.now(),
end: Date.now(),
}
+ currentText.text = currentText.text.trimEnd()
await updatePart(currentText)
}
currentText = undefined