Skip to content

Open source CapCut alternative.

TypeScript

fix(app): save a long answer as a markdown file instead of truncating it inline

David Le5c518c349017
diff --git a/apps/Donkey/Sources/DonkeyAI/DonkeyPrompts.swift b/apps/Donkey/Sources/DonkeyAI/DonkeyPrompts.swift
index 7d0194bb..f83bd260 100644
--- a/apps/Donkey/Sources/DonkeyAI/DonkeyPrompts.swift
+++ b/apps/Donkey/Sources/DonkeyAI/DonkeyPrompts.swift
@@ -501,8 +501,10 @@ public enum DonkeyPrompts {
goal met), that IS your evidence — go straight to run.complete. A second check of an
already-confirmed result just stalls.
- Anything said to the user (conversation.respond, run.complete reason) reports the result, not
- the process: what is now true ("Playing Yellow by Coldplay"). If the goal was missed, say
- plainly what happened and the most likely reason.
+ the process: what is now true ("Playing Yellow by Coldplay"), a short paragraph at most. A
+ longer result (a list of links, extracted text, a report) goes in a markdown file in your
+ working folder via files.write; then reply with one line plus that file's path. If the goal
+ was missed, say plainly what happened and the most likely reason.
Return JSON: {"tool": "<one tool name>", "input": {"key": "value", ...}, "narration": "<one warm sentence>"}. \
Always include "input" with every required field filled exactly as the tool's schema names them; use {} only for a tool that needs none. \
"narration" is the single first-person line the user reads live for this step — warm and plain, present tense, saying what you're doing and why in one breath ("Found the file — now I'll make the edit."). \
diff --git a/apps/Donkey/Sources/DonkeyHarness/GenericHarnessToolRegistry.swift b/apps/Donkey/Sources/DonkeyHarness/GenericHarnessToolRegistry.swift
index ccfdb22a..d5053920 100644
--- a/apps/Donkey/Sources/DonkeyHarness/GenericHarnessToolRegistry.swift
+++ b/apps/Donkey/Sources/DonkeyHarness/GenericHarnessToolRegistry.swift
@@ -190,7 +190,7 @@ public enum BuiltInHarnessToolCatalog {
descriptor(
"conversation.respond",
pluginID: "core.conversation",
- summary: "Answer the user or chat when the request needs a reply rather than an action. Set 'response' to the message.",
+ summary: "Answer the user or chat when the request needs a reply rather than an action. Set 'response' to the message — a short paragraph at most; the display has little room. A longer result (a list of links, extracted text, a report) goes in a markdown file in the working folder via files.write first; then respond with one line plus that file's path.",
input: ["response": "The message to say to the user."],
permissions: [.conversation],
safety: .readOnly