Files
Kilo-Org_kilocode/packages/opencode/src
Marius 18322e9eed fix(cli): inject plan file path into non-experimental plan mode prompt (#8065)
* fix(cli): inject plan file path into non-experimental plan mode prompt

The plan.txt prompt said 'STRICTLY FORBIDDEN: ANY file edits, ZERO
exceptions' without telling the agent where the plan file is. The agent
had to guess from the directory tree, often picking .kilocode/ (which
exists) over .kilo/ (which doesn't). Now the non-experimental path
computes Session.plan(), creates the directory, and injects the exact
path into the prompt — matching what the experimental plan mode already
does.

Fixes #6907

* fix(cli): use absolute plan path in prompt to match experimental mode

Addresses bot review: relative path resolves against Instance.directory,
not Instance.worktree, so subdirectory sessions would target the wrong
file. Use the absolute path from Session.plan() like the experimental
plan mode does.

* chore(cli): add kilocode_change markers to plan file path injection
2026-04-01 14:47:47 +02:00
..
2026-03-09 13:02:22 +01:00
2026-02-11 14:26:25 -03:00
2026-02-14 04:19:02 +00:00
2026-03-16 20:33:36 -03:00
2026-02-23 20:12:28 +01:00
2026-03-20 11:56:07 +01:00
2026-03-17 11:37:03 -03:00
2026-03-20 11:56:07 +01:00
2026-03-17 07:46:46 -03:00
2026-03-16 20:33:36 -03:00
2026-02-14 04:19:02 +00:00