01719e1ded6bf7fbb15581817b0781e3880d4518
- Author
- TheEdgeOfRage <git@theedgeofrage.com>
- Committer
- TheEdgeOfRage <git@theedgeofrage.com>
- Date
Message
Diff
This diff is truncated to protect this page.
1diff --git a/dot_pi/private_agent/extensions/handoff/index.ts b/dot_pi/private_agent/extensions/handoff/index.ts
2index 00bc368ec171a327191b097e457cc859c4df76d6..88c4eca5e6f7fb70a5476dd65c5cf93f51826ec1 100644
3--- a/dot_pi/private_agent/extensions/handoff/index.ts
4+++ b/dot_pi/private_agent/extensions/handoff/index.ts
5@@ -1,133 +1,145 @@
6-import type { ExtensionAPI, SessionEntry } from "@earendil-works/pi-coding-agent";
7+import type {
8+ ExtensionAPI,
9+ SessionEntry,
10+} from "@earendil-works/pi-coding-agent";
11
12 const HANDOFF_AGENT_START_TIMEOUT_MS = 30_000;
13+const HANDOFF_CONTEXT_INSTRUCTIONS =
14+ "If the handoff contains specific instructions to reingest context, use available session or tree inspection capabilities to recover the needed context from that branch, then resume.";
15+
16 function buildContinueFromHandoffPrompt(
17- sessionFile: string | undefined,
18- sourceLeafEntryId: string,
19+ sessionFile: string | undefined,
20+ sourceLeafEntryId: string,
21 ): string {
22- const sourceBranchInstructions =
23- sessionFile === undefined
24- ? `The source branch ends at session tree entry ${JSON.stringify(sourceLeafEntryId)}. If the handoff leaves a blocking ambiguity, use available session or tree inspection capabilities to recover the needed context from that branch, then resume.`