openclaw-code-agent 4.1.1 → 4.2.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.
@@ -2,7 +2,7 @@
2
2
  "id": "openclaw-code-agent",
3
3
  "name": "OpenClaw Code Agent",
4
4
  "description": "Multi-session coding-agent orchestration from OpenClaw chat",
5
- "version": "4.1.1",
5
+ "version": "4.2.0",
6
6
  "contracts": {
7
7
  "tools": [
8
8
  "agent_launch",
@@ -11,7 +11,7 @@
11
11
  "agent_output",
12
12
  "agent_respond",
13
13
  "agent_request_plan_approval",
14
- "agent_send_monitor_report",
14
+ "agent_send_plan_offer",
15
15
  "agent_stats",
16
16
  "agent_merge",
17
17
  "agent_pr",
@@ -180,7 +180,7 @@
180
180
  "type": "string",
181
181
  "default": "delegate",
182
182
  "enum": ["off", "manual", "ask", "delegate", "auto-merge", "auto-pr"],
183
- "description": "Default worktree strategy for all new sessions when agent_launch omits worktree_strategy. 'delegate' (default) creates an isolated worktree and wakes the orchestrator to decide follow-through autonomously. 'off' = no worktree. 'manual' = create worktree, no automatic action. 'ask' = push branch and notify the user with inline buttons (Merge locally / Create PR). 'auto-merge' = auto-merge to base branch on completion. 'auto-pr' = auto-create or update a GitHub PR on completion."
183
+ "description": "Default worktree strategy for all new sessions when agent_launch omits worktree_strategy. 'delegate' (default) creates an isolated worktree and wakes the orchestrator to decide follow-through autonomously. 'off' = no worktree. 'manual' = create worktree, no automatic action. 'ask' = push branch and notify the user with state-aware inline buttons such as Merge, Open PR, View PR, Sync PR, Later, and Discard. 'auto-merge' = auto-merge to base branch on completion. 'auto-pr' = auto-create or update a GitHub PR on completion."
184
184
  },
185
185
  "worktreeDir": {
186
186
  "type": "string",
@@ -244,7 +244,7 @@
244
244
  },
245
245
  "defaultWorktreeStrategy": {
246
246
  "label": "Default worktree strategy",
247
- "help": "Applies to all sessions that don't specify worktree_strategy explicitly. 'delegate' (default) creates a worktree and wakes the orchestrator to decide follow-through. 'off' disables worktrees globally. 'ask' sends inline Merge locally / Create PR buttons on completion. 'auto-merge' and 'auto-pr' are fully automated.",
247
+ "help": "Applies to all sessions that don't specify worktree_strategy explicitly. 'delegate' (default) creates a worktree and wakes the orchestrator to decide follow-through. 'off' disables worktrees globally. 'ask' sends state-aware inline worktree buttons such as Merge, Open PR, View PR, Sync PR, Later, and Discard. 'auto-merge' and 'auto-pr' are fully automated.",
248
248
  "advanced": true
249
249
  }
250
250
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openclaw-code-agent",
3
- "version": "4.1.1",
3
+ "version": "4.2.0",
4
4
  "type": "module",
5
5
  "packageManager": "pnpm@10.30.0",
6
6
  "main": "dist/index.js",
@@ -29,14 +29,13 @@
29
29
  "minGatewayVersion": "2026.4.21"
30
30
  },
31
31
  "build": {
32
- "openclawVersion": "2026.5.4",
33
- "pluginSdkVersion": "2026.5.4"
32
+ "openclawVersion": "2026.5.5",
33
+ "pluginSdkVersion": "2026.5.5"
34
34
  }
35
35
  },
36
36
  "files": [
37
37
  "dist/",
38
38
  "skills/",
39
- "workflows/",
40
39
  "openclaw.plugin.json",
41
40
  "README.md",
42
41
  "LICENSE"
@@ -49,7 +48,7 @@
49
48
  "@types/node": "^25.5.2",
50
49
  "esbuild": "^0.28.0",
51
50
  "nanoid": "^5.1.7",
52
- "openclaw": "2026.5.4",
51
+ "openclaw": "2026.5.5",
53
52
  "tsx": "^4.21.0",
54
53
  "typescript": "^6.0.2"
55
54
  },
@@ -25,7 +25,7 @@ Use `openclaw-code-agent` to run Claude Code or Codex sessions as background cod
25
25
  - Set `workdir` to the target repo.
26
26
  - Use `permission_mode: "plan"` when the user wants a real review gate before implementation.
27
27
  - Use `permission_mode: "bypassPermissions"` only for autonomous execution.
28
- - `defaultWorktreeStrategy` now defaults to `off`. Opt into a worktree strategy explicitly when you want branch isolation.
28
+ - `defaultWorktreeStrategy` defaults to `delegate`, so new sessions normally use branch isolation and orchestrator-led follow-through. Use `worktree_strategy: "off"` only when the task must run in the main checkout or outside a git repo.
29
29
  - In `plan` mode, the plan belongs in normal session output. Do not ask the coding agent to write plan docs or transcript artifacts unless the user explicitly asked for a file.
30
30
 
31
31
  Example:
@@ -126,7 +126,9 @@ Use `permission_mode: "plan"` whenever the user wants a real planning checkpoint
126
126
 
127
127
  - Approval belongs to the user.
128
128
  - The plugin sends the canonical Approve / Revise / Reject prompt directly to the user.
129
+ - Telegram and Discord buttons use the shared direct-message presentation path; if buttons are missing, plain-text `Approve`, `Revise`, or `Reject` in the same thread drives the same decision path.
129
130
  - If the user requests changes, wait for the revised plan from that same session; the revised submission becomes the latest actionable review version automatically.
131
+ - If the user rejects the plan or the session is killed, treat older plan prompts as stale and verify state with `agent_sessions` before acting.
130
132
  - Wait for the user's answer, then forward it with `agent_respond(...)`.
131
133
  - Do not send a duplicate approval recap or second approval prompt.
132
134