Skip to content

Commit 340cd5c

Browse files
committed
fix: resolve type error in compact session call and variable shadowing
1 parent d14a300 commit 340cd5c

File tree

1 file changed

+4
-3
lines changed
  • packages/opencode/src/cli/cmd/tui/routes/session

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,9 @@ export function Session() {
321321
}
322322
sdk.client.session.summarize({
323323
sessionID: route.sessionID,
324-
modelID: selectedModel.modelID,
325324
providerID: selectedModel.providerID,
325+
modelID: selectedModel.modelID,
326+
// @ts-ignore
326327
prompt,
327328
})
328329
dialog.clear()
@@ -870,11 +871,11 @@ export function Session() {
870871
{(function () {
871872
const command = useCommandDialog()
872873
const [hover, setHover] = createSignal(false)
873-
const dialog = useDialog()
874+
const modal = useDialog()
874875

875876
const handleUnrevert = async () => {
876877
const confirmed = await DialogConfirm.show(
877-
dialog,
878+
modal,
878879
"Confirm Redo",
879880
"Are you sure you want to restore the reverted messages?",
880881
)

0 commit comments

Comments
 (0)