소스 검색

fix: undefined err

Aiden Cline 4 달 전
부모
커밋
adbb6037ac
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      packages/opencode/src/cli/cmd/tui/routes/session/index.tsx

+ 1 - 0
packages/opencode/src/cli/cmd/tui/routes/session/index.tsx

@@ -147,6 +147,7 @@ export function Session() {
   // Auto-navigate to whichever session currently needs permission input
   createEffect(() => {
     const currentSession = session()
+    if (!currentSession) return
     const currentPermissions = permissions()
     let targetID = currentPermissions.length > 0 ? currentSession.id : undefined