create-claude-workspace 1.1.146 → 1.1.147

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -389,10 +389,13 @@ export class TUI {
389
389
  return;
390
390
  }
391
391
  if (msg.subtype === 'task_started') {
392
+ // Agent name was already pushed by the Agent tool_use handler — don't push again.
393
+ // Use agent name from stack; description is secondary context.
394
+ const agent = this.state.agents.length > 0 ? this.state.agents[this.state.agents.length - 1] : (msg.description || 'agent');
392
395
  const desc = msg.description || '';
393
- const col = ANSI_COLORS[agentColor(desc)] || '';
394
- this.state.agents.push(desc);
395
- this.log(` ${ANSI_COLORS.gray}${ts()}${RESET} 🤖 ${col}${BOLD}${desc}${RESET}`, `AGENT_START: ${desc}`);
396
+ const col = ANSI_COLORS[agentColor(agent)] || '';
397
+ const detail = desc && desc !== agent ? ` ${ANSI_COLORS.gray}${trunc(desc, 50)}${RESET}` : '';
398
+ this.log(` ${ANSI_COLORS.gray}${ts()}${RESET} 🤖 ${col}${BOLD}${agent}${RESET}${detail}`, `AGENT_START: ${agent} — ${desc}`);
396
399
  return;
397
400
  }
398
401
  if (msg.subtype === 'task_notification') {
@@ -400,8 +403,8 @@ export class TUI {
400
403
  const name = this.state.agents.length > 0 ? this.state.agents.pop() : 'agent';
401
404
  const col = ANSI_COLORS[agentColor(name)] || '';
402
405
  const icon = status === 'completed' ? `${ANSI_COLORS.green}✓` : `${ANSI_COLORS.red}✗`;
403
- const summary = msg.summary ? ` ${ANSI_COLORS.gray}${trunc(msg.summary, 60)}${RESET}` : '';
404
- this.log(` ${ANSI_COLORS.gray}${ts()}${RESET} ${icon}${RESET} ${col}${name}${RESET} ${status}${summary}`, `AGENT_END: ${name} ${status}`);
406
+ const detail = msg.summary ? ` ${ANSI_COLORS.gray}${trunc(msg.summary, 60)}${RESET}` : '';
407
+ this.log(` ${ANSI_COLORS.gray}${ts()}${RESET} ${icon}${RESET} ${col}${name}${RESET} ${status}${detail}`, `AGENT_END: ${name} ${status}`);
405
408
  return;
406
409
  }
407
410
  if (msg.subtype === 'task_progress' && msg.description) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-claude-workspace",
3
- "version": "1.1.146",
3
+ "version": "1.1.147",
4
4
  "author": "",
5
5
  "repository": {
6
6
  "type": "git",