Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

fix(server): stop showing commit/push/PR notices as errors in the work log (#5559)

Theo Browne0ec4fbc4a376
diff --git a/apps/server/src/provider/Layers/ClaudeAdapter.test.ts b/apps/server/src/provider/Layers/ClaudeAdapter.test.ts
index 8697505ef..24b8429a3 100644
--- a/apps/server/src/provider/Layers/ClaudeAdapter.test.ts
+++ b/apps/server/src/provider/Layers/ClaudeAdapter.test.ts
@@ -2021,6 +2021,24 @@ describe("ClaudeAdapterLive", () => {
session_id: "session",
uuid: "roster",
},
+ {
+ type: "system",
+ subtype: "vcs_state_changed",
+ kind: "push",
+ cwd: "/tmp/worktree",
+ session_id: "session",
+ uuid: "vcs",
+ },
+ {
+ type: "system",
+ subtype: "code_change_published",
+ provider: "github",
+ url: "https://github.com/pingdotgg/t3code/pull/1",
+ repo: "pingdotgg/t3code",
+ identifier: "1",
+ session_id: "session",
+ uuid: "ccp",
+ },
{
type: "system",
subtype: "task_updated",
diff --git a/apps/server/src/provider/Layers/ClaudeAdapter.ts b/apps/server/src/provider/Layers/ClaudeAdapter.ts
index 812a73109..27acedc38 100644
--- a/apps/server/src/provider/Layers/ClaudeAdapter.ts
+++ b/apps/server/src/provider/Layers/ClaudeAdapter.ts
@@ -3034,9 +3034,15 @@ export const makeClaudeAdapter = Effect.fn("makeClaudeAdapter")(function* (
// error rows in client work logs. `background_tasks_changed` is a roster
// snapshot ({tasks: [...]}) — the task_* lifecycle events carry the
// authoritative per-agent data and the typed background_tasks control
- // request is the reconciliation source.
- if ((message.subtype as string) === "background_tasks_changed") {
- return;
+ // request is the reconciliation source. `vcs_state_changed`
+ // ({kind: commit|push|rebase}) and `code_change_published`
+ // ({provider, url, repo}) are informational CLI notices; the work log
+ // already shows the underlying git/gh tool calls.
+ switch (message.subtype as string) {
+ case "background_tasks_changed":
+ case "vcs_state_changed":
+ case "code_change_published":
+ return;
}
switch (message.subtype) {