Skip to content

Commit 9dd84e3

Browse files
author
catlog22
committed
fix: Update agent execution instructions and improve rendering layout in API settings
1 parent 211c25d commit 9dd84e3

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.claude/CLAUDE.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@ Available CLI endpoints are dynamically defined by the config file:
1717

1818
## Agent Execution
1919

20-
- **Always use `run_in_background = false`** for Task tool agent calls to ensure synchronous execution and immediate result visibility
20+
- **Always use `run_in_background: false`** for Task tool agent calls: `Task({ subagent_type: "xxx", prompt: "...", run_in_background: false })` to ensure synchronous execution and immediate result visibility
21+
- **TaskOutput usage**: Only use `TaskOutput({ task_id: "xxx", block: false })` + sleep loop to poll completion status. NEVER read intermediate output during agent/CLI execution - wait for final result only
2122

2223
## Code Diagnostics
2324

2425
- **Prefer `mcp__ide__getDiagnostics`** for code error checking over shell-based TypeScript compilation
25-
- Usage: `mcp__ide__getDiagnostics({ uri: "file:///path/to/file.ts" })` for specific file or omit uri for all files
26-
- Benefits: Works across platforms, no shell environment issues, real-time IDE integration

ccw/src/templates/dashboard-js/views/api-settings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2799,7 +2799,7 @@ function renderDiscoveredProviders() {
27992799

28002800
providersHtml += '<div style="border: 1px solid hsl(var(--border)); border-radius: 0.5rem; padding: 1rem; ' +
28012801
(isExcluded ? 'opacity: 0.5; background: hsl(var(--muted) / 0.3);' : 'background: hsl(var(--card));') + '">' +
2802-
'<div style="display: flex; align-items: center; justify-between; margin-bottom: 0.75rem;">' +
2802+
'<div style="display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem;">' +
28032803
'<div style="display: flex; align-items: center; gap: 0.75rem;">' +
28042804
'<div style="width: 2rem; height: 2rem; border-radius: 0.375rem; background: ' + (isExcluded ? 'hsl(var(--muted))' : 'hsl(var(--success) / 0.1)') + '; color: ' + (isExcluded ? 'hsl(var(--muted-foreground))' : 'hsl(var(--success))') + '; display: flex; align-items: center; justify-content: center;">' +
28052805
'<i data-lucide="' + providerIcon + '" style="width: 1.125rem; height: 1.125rem;"></i>' +

0 commit comments

Comments
 (0)