The open-source app everyone uses to manage agents at work
TypeScript acpxagent-orchestrationagent-skillsagentic-aiai-agentsai-engineeringai-governanceai-toolsautonomous-agentsclaudeclaude-codeclaude-skillscodexhermesllmmcpmulti-agentopenclawproject-managementworkflow-automation
Fix empty space in new issue pane when workspaces disabled
Dottab2f7252b27a8
diff --git a/ui/src/components/NewIssueDialog.tsx b/ui/src/components/NewIssueDialog.tsxindex a734fbd56c..ad8efb6763 100644--- a/ui/src/components/NewIssueDialog.tsx+++ b/ui/src/components/NewIssueDialog.tsx@@ -1117,51 +1117,49 @@ export function NewIssueDialog() {</div></div>- {currentProject && (+ {currentProject && currentProjectSupportsExecutionWorkspace && (<div className="px-4 py-3 shrink-0 space-y-2">- {currentProjectSupportsExecutionWorkspace && (- <div className="space-y-1.5">- <div className="text-xs font-medium">Execution workspace</div>- <div className="text-[11px] text-muted-foreground">- Control whether this issue runs in the shared workspace, a new isolated workspace, or an existing one.- </div>+ <div className="space-y-1.5">+ <div className="text-xs font-medium">Execution workspace</div>+ <div className="text-[11px] text-muted-foreground">+ Control whether this issue runs in the shared workspace, a new isolated workspace, or an existing one.+ </div>+ <select+ className="w-full rounded border border-border bg-transparent px-2 py-1.5 text-xs outline-none"+ value={executionWorkspaceMode}+ onChange={(e) => {+ setExecutionWorkspaceMode(e.target.value);+ if (e.target.value !== "reuse_existing") {+ setSelectedExecutionWorkspaceId("");+ }+ }}+ >+ {EXECUTION_WORKSPACE_MODES.map((option) => (+ <option key={option.value} value={option.value}>+ {option.label}+ </option>+ ))}+ </select>+ {executionWorkspaceMode === "reuse_existing" && (<selectclassName="w-full rounded border border-border bg-transparent px-2 py-1.5 text-xs outline-none"- value={executionWorkspaceMode}- onChange={(e) => {- setExecutionWorkspaceMode(e.target.value);- if (e.target.value !== "reuse_existing") {- setSelectedExecutionWorkspaceId("");- }- }}+ value={selectedExecutionWorkspaceId}+ onChange={(e) => setSelectedExecutionWorkspaceId(e.target.value)}>- {EXECUTION_WORKSPACE_MODES.map((option) => (- <option key={option.value} value={option.value}>- {option.label}+ <option value="">Choose an existing workspace</option>+ {deduplicatedReusableWorkspaces.map((workspace) => (+ <option key={workspace.id} value={workspace.id}>+ {workspace.name} · {workspace.status} · {workspace.branchName ?? workspace.cwd ?? workspace.id.slice(0, 8)}</option>))}</select>- {executionWorkspaceMode === "reuse_existing" && (- <select- className="w-full rounded border border-border bg-transparent px-2 py-1.5 text-xs outline-none"- value={selectedExecutionWorkspaceId}- onChange={(e) => setSelectedExecutionWorkspaceId(e.target.value)}- >- <option value="">Choose an existing workspace</option>- {deduplicatedReusableWorkspaces.map((workspace) => (- <option key={workspace.id} value={workspace.id}>- {workspace.name} · {workspace.status} · {workspace.branchName ?? workspace.cwd ?? workspace.id.slice(0, 8)}- </option>- ))}- </select>- )}- {executionWorkspaceMode === "reuse_existing" && selectedReusableExecutionWorkspace && (- <div className="text-[11px] text-muted-foreground">- Reusing {selectedReusableExecutionWorkspace.name} from {selectedReusableExecutionWorkspace.branchName ?? selectedReusableExecutionWorkspace.cwd ?? "existing execution workspace"}.- </div>- )}- </div>- )}+ )}+ {executionWorkspaceMode === "reuse_existing" && selectedReusableExecutionWorkspace && (+ <div className="text-[11px] text-muted-foreground">+ Reusing {selectedReusableExecutionWorkspace.name} from {selectedReusableExecutionWorkspace.branchName ?? selectedReusableExecutionWorkspace.cwd ?? "existing execution workspace"}.+ </div>+ )}+ </div></div>)}