From 0062801e824b3975a1fce3702a99e52e27f03dfb Mon Sep 17 00:00:00 2001 From: marius-kilocode Date: Mon, 13 Jul 2026 18:01:10 +0200 Subject: [PATCH] chore(cli): annotate historical fork lookup --- packages/opencode/src/session/session.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/opencode/src/session/session.ts b/packages/opencode/src/session/session.ts index e128166edf..0524bce191 100644 --- a/packages/opencode/src/session/session.ts +++ b/packages/opencode/src/session/session.ts @@ -778,8 +778,8 @@ export const layer: Layer.Layer< // kilocode_change start - forks into another directory cannot read the source confinement from the new dir, so carry it over explicitly const sandboxFallback = yield* SandboxPolicy.peek(original.directory, input.sessionID) // kilocode_change end - const msgs = yield* messages({ sessionID: input.sessionID }) // kilocode_change start - historical forks must use the model from retained context, not a later source-session selection + const msgs = yield* messages({ sessionID: input.sessionID }) const point = input.messageID const message = point ? msgs.findLast((msg) => msg.info.id < point && msg.info.role === "user")