Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion browse/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ function spawnClaude(userMessage: string, extensionUrl?: string | null): void {

const prompt = `${systemPrompt}\n\n<user-message>\n${escapedMessage}\n</user-message>`;
const args = ['-p', prompt, '--model', 'opus', '--output-format', 'stream-json', '--verbose',
'--allowedTools', 'Bash,Read,Glob,Grep'];
'--allowedTools', 'Bash,Read,Write,Glob,Grep'];
if (sidebarSession?.claudeSessionId) {
args.push('--resume', sidebarSession.claudeSessionId);
}
Expand Down
2 changes: 1 addition & 1 deletion browse/src/sidebar-agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ async function askClaude(queueEntry: any): Promise<void> {
// Use args from queue entry (server sets --model, --allowedTools, prompt framing).
// Fall back to defaults only if queue entry has no args (backward compat).
let claudeArgs = args || ['-p', prompt, '--output-format', 'stream-json', '--verbose',
'--allowedTools', 'Bash,Read,Glob,Grep'];
'--allowedTools', 'Bash,Read,Write,Glob,Grep'];

// Validate cwd exists — queue may reference a stale worktree
let effectiveCwd = cwd || process.cwd();
Expand Down
6 changes: 6 additions & 0 deletions extension/sidepanel.css
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,12 @@ body::after {
font-family: var(--font-mono);
}

.agent-empty {
color: var(--muted);
font-size: 12px;
font-style: italic;
}

/* Thinking dots animation */
.agent-thinking {
display: flex;
Expand Down
9 changes: 8 additions & 1 deletion extension/sidepanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,15 @@ function handleAgentEvent(entry) {
// Remove thinking indicator
const thinking = document.getElementById('agent-thinking');
if (thinking) thinking.remove();
// Add timestamp
if (agentContainer) {
// Show notice when Claude finished but produced no text output
if (!agentTextEl) {
const notice = document.createElement('div');
notice.className = 'agent-empty';
notice.textContent = 'Done (no text output)';
agentContainer.appendChild(notice);
}
// Add timestamp
const ts = document.createElement('span');
ts.className = 'chat-time';
ts.textContent = formatChatTime(entry.ts);
Expand Down