chore: generate

This commit is contained in:
opencode-agent[bot]
2026-05-18 11:07:52 +00:00
parent 5970c12d90
commit c813927bb6
3 changed files with 39 additions and 28 deletions
@@ -607,9 +607,9 @@ function createLayer(input: StreamInput) {
messages( messages(
input.sessionID, input.sessionID,
input.replay input.replay
? (input.replayLimit === undefined ? input.replayLimit === undefined
? undefined ? undefined
: Math.max(input.replayLimit, SUBAGENT_BOOTSTRAP_LIMIT)) : Math.max(input.replayLimit, SUBAGENT_BOOTSTRAP_LIMIT)
: SUBAGENT_BOOTSTRAP_LIMIT, : SUBAGENT_BOOTSTRAP_LIMIT,
), ),
Effect.promise(() => Effect.promise(() =>
@@ -645,7 +645,8 @@ function createLayer(input: StreamInput) {
limits: input.limits(), limits: input.limits(),
}) })
: undefined : undefined
const replay = history && input.replayLimit !== undefined && messagesList.length > input.replayLimit const replay =
history && input.replayLimit !== undefined && messagesList.length > input.replayLimit
? replaySession({ ? replaySession({
messages: messagesList.slice(-input.replayLimit), messages: messagesList.slice(-input.replayLimit),
permissions: sessionPermissions, permissions: sessionPermissions,
@@ -106,7 +106,10 @@ function runningToolMessage(id: string): SessionMessages[number] {
describe("run session replay", () => { describe("run session replay", () => {
test("replays persisted user and assistant history into scrollback commits", () => { test("replays persisted user and assistant history into scrollback commits", () => {
const out = replaySession({ const out = replaySession({
messages: [userMessage("msg-user-1", "Hello, whats the weather today?"), assistantMessage("msg-1", "What city or ZIP code should I check?")], messages: [
userMessage("msg-user-1", "Hello, whats the weather today?"),
assistantMessage("msg-1", "What city or ZIP code should I check?"),
],
permissions: [], permissions: [],
questions: [], questions: [],
thinking: true, thinking: true,
@@ -374,7 +374,14 @@ function footer(fn?: (commit: StreamCommit) => void) {
}, },
} }
return { api, commits, events, get idleCalls() { return idleCalls } } return {
api,
commits,
events,
get idleCalls() {
return idleCalls
},
}
} }
function sdk( function sdk(