chore: ignore local identity files (#1001) (thanks @gerardward2007)
* chore: ignore local identity files (IDENTITY.md, USER.md) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * 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 <noreply@anthropic.com> Co-authored-by: Peter Steinberger <steipete@gmail.com>
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -55,3 +55,5 @@ apps/ios/*.mobileprovision
|
|||||||
# Local untracked files
|
# Local untracked files
|
||||||
.local/
|
.local/
|
||||||
.vscode/
|
.vscode/
|
||||||
|
IDENTITY.md
|
||||||
|
USER.md
|
||||||
|
|||||||
@@ -16,6 +16,7 @@
|
|||||||
- CLI: set process titles to `clawdbot-<command>` for clearer process listings.
|
- CLI: set process titles to `clawdbot-<command>` for clearer process listings.
|
||||||
- CLI/macOS: sync remote SSH target/identity to config and let `gateway status` auto-infer SSH targets (ssh-config aware).
|
- 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.
|
- 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.
|
- 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.
|
- 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.
|
- Onboarding: switch channels setup to a single-select loop with per-channel actions and disabled hints in the picker.
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
import { afterEach, expect, test } from "vitest";
|
import { afterEach, expect, test } from "vitest";
|
||||||
|
|
||||||
import { createExecTool } from "./bash-tools.exec";
|
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";
|
import { killProcessTree } from "./shell-utils";
|
||||||
|
|
||||||
afterEach(() => {
|
afterEach(() => {
|
||||||
@@ -14,7 +18,7 @@ test("background exec is not killed when tool signal aborts", async () => {
|
|||||||
|
|
||||||
const result = await tool.execute(
|
const result = await tool.execute(
|
||||||
"toolcall",
|
"toolcall",
|
||||||
{ command: "node -e \"setTimeout(() => {}, 5000)\"", background: true },
|
{ command: 'node -e "setTimeout(() => {}, 5000)"', background: true },
|
||||||
abortController.signal,
|
abortController.signal,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -290,9 +290,7 @@ export function createSessionStatusTool(opts?: {
|
|||||||
providers: [usageProvider],
|
providers: [usageProvider],
|
||||||
agentDir,
|
agentDir,
|
||||||
});
|
});
|
||||||
const snapshot = usageSummary.providers.find(
|
const snapshot = usageSummary.providers.find((entry) => entry.provider === usageProvider);
|
||||||
(entry) => entry.provider === usageProvider,
|
|
||||||
);
|
|
||||||
if (snapshot) {
|
if (snapshot) {
|
||||||
const formatted = formatUsageWindowSummary(snapshot, {
|
const formatted = formatUsageWindowSummary(snapshot, {
|
||||||
now: Date.now(),
|
now: Date.now(),
|
||||||
|
|||||||
Reference in New Issue
Block a user