Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 3 potential issues.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
| defaultBranch, | ||
| portSeed, | ||
| }); | ||
| }, [task, projectPath, defaultBranch, portSeed]); |
There was a problem hiding this comment.
Incomplete useMemo dependencies in TaskTerminalPanel
Medium Severity
The taskEnv memo depends on task.id, task.name, and task.path inside the computation, but the dependency array only includes task as a whole object reference. If the task's properties change while the object reference stays the same, the memo won't recompute and will return stale env vars. In contrast, ChatInterface.tsx correctly uses [task.id, task.name, task.path, ...] as dependencies.
|
Addressed Cursor Bugbot findings:
Pushed in 8b375f1. |


Summary
Testing
Note
Medium Risk
Touches terminal/PTTY spawning paths and IPC boundaries; while env injection is gated to
EMDASH_*, regressions could affect agent/terminal startup behavior across single- and multi-agent tasks.Overview
Adds a shared
getTaskEnvVarshelper that generatesEMDASH_*task context variables (including a deterministicEMDASH_PORTrange) and wires it into task terminals across the UI, including multi-agent variants via aportSeedto reduce port collisions.Extends the direct PTY spawn IPC/API to accept an
envpayload and updates the main-process direct-spawn path to merge onlyEMDASH_*keys into the minimal CLI environment. Updates docs to describe the new task env vars and provide port-aware setup anddocker-composeexamples.Written by Cursor Bugbot for commit 8b375f1. This will update automatically on new commits. Configure here.