You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(dashboard-agent): summarise what the transcript recorded about a watch
A watch can expire or be cancelled with nothing written back into the
transcript, so asking the summariser for "any watch that is running" preserved
an old confirmation as current state.
Copy file name to clipboardExpand all lines: internal-packages/dashboard-agent/src/compaction.ts
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -61,16 +61,16 @@ const SUMMARY_MODEL = "anthropic:claude-haiku-4-5" as const;
61
61
*/
62
62
constSUMMARY_MAX_OUTPUT_TOKENS=1_000;
63
63
64
-
constSUMMARY_INSTRUCTION=`You are compacting a support conversation between a user and an agent that reads a Trigger.dev dashboard, so the agent can keep going with a shorter history.
64
+
exportconstSUMMARY_INSTRUCTION=`You are compacting a support conversation between a user and an agent that reads a Trigger.dev dashboard, so the agent can keep going with a shorter history.
65
65
66
66
Write a summary in under 400 words, as notes rather than prose. Keep, in this order:
67
67
1. What the user is trying to do, in their own terms, and anything they asked to be remembered.
68
68
2. Facts already established, with the run ids, queue names, task identifiers, error fingerprints and numbers they rest on. Never restate a number you cannot see.
69
69
3. Any investigation that is open: its investigationId, its title and its current outcome.
70
-
4. Any watch that is running or has reported, and what it said.
70
+
4. Any watch the transcript records — what it was set up to watch, and what it said if it reported. Write it as what the transcript recorded, never as what is true now: a watch can expire or be cancelled without saying so here, so never present one as current.
71
71
5. What was asked most recently and what is still unanswered.
72
72
73
-
Drop tool mechanics, retries, and anything already superseded. Do not add advice, and do not invent anything that is not in the transcript.`;
73
+
Drop tool mechanics, retries, and anything already superseded. Do not add advice, and do not invent anything that is not in the transcript. Everything you write is a record of what the transcript said, not a claim about the present.`;
74
74
75
75
/** A summary that reads as a summary, and never as the user's next question. */
0 commit comments