@openagents-org/agent-launcher 0.2.125 → 0.2.126

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openagents-org/agent-launcher",
3
- "version": "0.2.125",
3
+ "version": "0.2.126",
4
4
  "description": "OpenAgents Launcher — install, configure, and run AI coding agents from your terminal",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -390,7 +390,7 @@ class ClaudeAdapter extends BaseAdapter {
390
390
  const cmd = [claudeBin, '-p', prompt, '--output-format', 'stream-json', '--verbose'];
391
391
 
392
392
  cmd.push('--append-system-prompt', systemPrompt);
393
- cmd.push('--disallowedTools', 'AskUserQuestion', 'TodoWrite');
393
+ cmd.push('--disallowedTools', 'AskUserQuestion');
394
394
 
395
395
  // Resume existing conversation (skipped on retry after stale session)
396
396
  const sessionId = this._channelSessions[channelName];
@@ -748,6 +748,18 @@ class ClaudeAdapter extends BaseAdapter {
748
748
  lastResponseText.length = 0;
749
749
  const toolName = block.name || '';
750
750
 
751
+ // Intercept TodoWrite: forward to workspace API so it emits a chat event
752
+ if (toolName === 'TodoWrite' && block.input && block.input.todos) {
753
+ try {
754
+ const wsTodos = block.input.todos.map((t) => ({
755
+ content: t.content,
756
+ status: t.status || 'pending',
757
+ assignee: t.assignee,
758
+ }));
759
+ await this.sendTodos(msgChannel, wsTodos);
760
+ } catch {}
761
+ }
762
+
751
763
  // Format tool input as readable text
752
764
  let inputPreview = '';
753
765
  if (block.input && typeof block.input === 'object') {