Skip to content

Commit 542b082

Browse files
chore: generate
1 parent 2f2fcc1 commit 542b082

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

packages/opencode/src/cli/cmd/tui/routes/session/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,8 @@ export function Session() {
211211

212212
const pending = createMemo(() => {
213213
const completed = messages().findLast((x) => x.role === "assistant" && x.time.completed)?.id
214-
return messages().findLast((x) => x.role === "assistant" && !x.time.completed && (!completed || x.id > completed))?.id
214+
return messages().findLast((x) => x.role === "assistant" && !x.time.completed && (!completed || x.id > completed))
215+
?.id
215216
})
216217

217218
const lastAssistant = createMemo(() => {

packages/opencode/test/session/snapshot-tool-race.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,9 @@ it.live("tool execution produces non-empty session diff (snapshot race)", () =>
257257

258258
// Verify the tool call completed (in the first assistant message)
259259
const allMsgs = yield* MessageV2.filterCompactedEffect(session.id)
260-
const user = allMsgs.find((msg): msg is SessionLegacy.WithParts & { info: SessionLegacy.User } => msg.info.role === "user")
260+
const user = allMsgs.find(
261+
(msg): msg is SessionLegacy.WithParts & { info: SessionLegacy.User } => msg.info.role === "user",
262+
)
261263
const tool = allMsgs
262264
.flatMap((m) => m.parts)
263265
.find((p): p is SessionLegacy.ToolPart => p.type === "tool" && p.tool === "bash")

0 commit comments

Comments
 (0)