fix: remove process.cwd() call in renderer

Node.js process API is not available in renderer with context isolation.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Jiayuan
2026-01-14 03:49:30 +08:00
parent 05f1de43fb
commit e3c1ca1332

View File

@@ -43,7 +43,7 @@ function App(): React.JSX.Element {
}, [agentStatus.state, currentSession, sessions.length])
const handleNewSession = () => {
setNewSessionCwd(process.cwd?.() || '')
setNewSessionCwd('')
setShowNewSession(true)
}