From 0f34255359416d8e30b428dce340953eb5c3c495 Mon Sep 17 00:00:00 2001 From: gerardward2007 Date: Fri, 16 Jan 2026 11:30:04 +0100 Subject: [PATCH] chore: ignore local identity files (#1001) (thanks @gerardward2007) * chore: ignore local identity files (IDENTITY.md, USER.md) Co-Authored-By: Claude Opus 4.5 * chore: ignore local identity files (#1001) (thanks @gerardward2007) * chore: format session status tool * chore: format bash exec background abort test --------- Co-authored-by: Claude Opus 4.5 Co-authored-by: Peter Steinberger --- .gitignore | 2 ++ CHANGELOG.md | 1 + src/agents/bash-tools.exec.background-abort.test.ts | 8 ++++++-- src/agents/tools/session-status-tool.ts | 4 +--- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 147a3a32f..68f100069 100644 --- a/.gitignore +++ b/.gitignore @@ -55,3 +55,5 @@ apps/ios/*.mobileprovision # Local untracked files .local/ .vscode/ +IDENTITY.md +USER.md diff --git a/CHANGELOG.md b/CHANGELOG.md index d978f8bdb..3f2988601 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ - CLI: set process titles to `clawdbot-` for clearer process listings. - CLI/macOS: sync remote SSH target/identity to config and let `gateway status` auto-infer SSH targets (ssh-config aware). - Heartbeat: tighten prompt guidance + suppress duplicate alerts for 24h. (#980) — thanks @voidserf. +- Repo: ignore local identity files to avoid accidental commits. (#1001) — thanks @gerardward2007. - Sessions/Security: add `session.dmScope` for multi-user DM isolation and audit warnings. (#948) — thanks @Alphonse-arianee. - Plugins: add provider auth registry + `clawdbot models auth login` for plugin-driven OAuth/API key flows. - Onboarding: switch channels setup to a single-select loop with per-channel actions and disabled hints in the picker. diff --git a/src/agents/bash-tools.exec.background-abort.test.ts b/src/agents/bash-tools.exec.background-abort.test.ts index facd98557..bb72f61b7 100644 --- a/src/agents/bash-tools.exec.background-abort.test.ts +++ b/src/agents/bash-tools.exec.background-abort.test.ts @@ -1,7 +1,11 @@ import { afterEach, expect, test } from "vitest"; import { createExecTool } from "./bash-tools.exec"; -import { getFinishedSession, getSession, resetProcessRegistryForTests } from "./bash-process-registry"; +import { + getFinishedSession, + getSession, + resetProcessRegistryForTests, +} from "./bash-process-registry"; import { killProcessTree } from "./shell-utils"; afterEach(() => { @@ -14,7 +18,7 @@ test("background exec is not killed when tool signal aborts", async () => { const result = await tool.execute( "toolcall", - { command: "node -e \"setTimeout(() => {}, 5000)\"", background: true }, + { command: 'node -e "setTimeout(() => {}, 5000)"', background: true }, abortController.signal, ); diff --git a/src/agents/tools/session-status-tool.ts b/src/agents/tools/session-status-tool.ts index ab8114982..9385916e2 100644 --- a/src/agents/tools/session-status-tool.ts +++ b/src/agents/tools/session-status-tool.ts @@ -290,9 +290,7 @@ export function createSessionStatusTool(opts?: { providers: [usageProvider], agentDir, }); - const snapshot = usageSummary.providers.find( - (entry) => entry.provider === usageProvider, - ); + const snapshot = usageSummary.providers.find((entry) => entry.provider === usageProvider); if (snapshot) { const formatted = formatUsageWindowSummary(snapshot, { now: Date.now(),