claude-task-worker 0.109.0 → 0.110.0

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.
Files changed (2) hide show
  1. package/dist/index.js +9 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2566,8 +2566,15 @@ function buildClaudeArgs({
2566
2566
  // クラウド実行(`cloud: true`)も print モード非対応のため同様に省く
2567
2567
  // (実測 T2: `Error: --cloud cannot be combined with --print.`)。
2568
2568
  ...mode === "herdr" || cloud === true ? [] : ["-p", prompt],
2569
- "--permission-mode",
2570
- permission,
2569
+ // クラウド実行では権限モードを渡さない。クラウドセッションは `--permission-mode` を
2570
+ // 受理するが VM 側へ反映せず(Issue #307。VM の権限モードは cloud-setup が書く
2571
+ // settings.json の `permissions.defaultMode` が決める)、一方でローカル側の作成
2572
+ // コマンドは script(1) の疑似pty越し=**対話起動**として扱われるため、
2573
+ // `bypassPermissions` を渡すと claude が「WARNING: ... Bypass Permissions mode /
2574
+ // No, exit / Yes, I accept」の承認ダイアログを出す(print モードでは出ない)。
2575
+ // 作成コマンドの stdin は ignore で誰も応答できず、セッションIDが出力されないまま
2576
+ // 必ず `timed out waiting for the cloud session id` で失敗する。
2577
+ ...cloud === true ? [] : ["--permission-mode", permission],
2571
2578
  "--disallowedTools",
2572
2579
  DISALLOWED_TOOLS_ARG,
2573
2580
  "--append-system-prompt-file",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-task-worker",
3
- "version": "0.109.0",
3
+ "version": "0.110.0",
4
4
  "description": "CLI tool that polls GitHub Issues/PRs and delegates work to Claude CLI",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",