feat(extensions): add Roast Room, bring Codex to parity, fix audit findings

Roast Room is installed as a managed Git clone under
~/.my-ai-configuration/roast-room, shared by Claude and Codex. A personal
launcher skill runs it from any folder, starts its live room when needed,
and only runs when invoked by name (/roast-room, $roast-room).

Codex now gets what was Claude-only before: the Caveman skill with a
SessionStart hook that keeps it on, PreCompact and session-pointer hooks,
execpolicy deny rules mirroring Claude's permissions.deny, and Impeccable's
custom agents registered in ~/.codex/agents. The command-safety hook checks
both shell dialects for Codex on Windows, where PowerShell text arrives as
Bash, in both the PowerShell and Bash packages.

Audit fixes:
- command-safety blocks git checkout -- / restore / push --force /
  stash clear and find -delete, and treats heredoc bodies as text
- removing a clone clears read-only Git files, git errors no longer abort
  the extension sync, and a lock left by a dead process is replaced
- with-credential passes child flags such as -k or -d through unchanged
  and resolves commands from PATH
- uninstall strips only owned hooks from settings.json and config.toml and
  keeps the selection while another client is installed; update keeps
  CLAUDE_CODE_MAX_TOOL_USE_CONCURRENCY; Bash merges write the same bytes as
  PowerShell
- qmd no longer trusts a stale daemon.json after a lost start race and
  prunes collections of deleted repositories
- Bash scripts avoid GNU-only find -printf

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Julian LechnerandClaude Opus 5.5 committed 2026-11-19 09:02:47 +01:00
1 parent 63a36d90e0
commit b35e2254b3
48 files changed
+1059 -98

No files matched your search

+24 -5
View File
@@ -95,13 +95,32 @@ function tempDaemonFile(t, value) {
return file;
}
const losingChild = () => {
const child = new EventEmitter(); child.unref = () => {}; child.pid = 1;
setImmediate(() => child.emit('exit', 0));
return child;
};
test('startDaemon resolves when its child loses the start race to a running daemon', async (t) => {
const file = tempDaemonFile(t, { port: 4000, token: 'other', pid: 999 });
await startDaemon({ file, spawnChild: () => {
const child = new EventEmitter(); child.unref = () => {}; child.pid = 1;
setImmediate(() => child.emit('exit', 0));
return child;
} });
const fetchImpl = async (url, options) => {
assert.equal(url, 'http://127.0.0.1:4000/health');
assert.equal(options.headers['x-qmd-token'], 'other');
return { ok: true, json: async () => ({ service: 'ai-config-qmd' }) };
};
await startDaemon({ file, fetchImpl, spawnChild: losingChild });
});
test('after a lost race a stale daemon.json from a crashed daemon is not used until a new token appears', async (t) => {
const file = tempDaemonFile(t, { port: 4000, token: 'crashed', pid: 999 });
let checks = 0;
const fetchImpl = async () => { checks += 1; throw new TypeError('fetch failed'); };
let rewritten = false;
const timer = setTimeout(() => { rewritten = true; writeFileSync(file, JSON.stringify({ port: 4001, token: 'fresh', pid: 998 })); }, 1200);
t.after(() => clearTimeout(timer));
await startDaemon({ file, fetchImpl, spawnChild: losingChild });
assert.ok(rewritten, 'resolved on the stale daemon.json');
assert.ok(checks >= 1, 'the stale token was health-checked');
});
test('a 403 means a stale token: daemon.json is deleted and one new daemon is started', async (t) => {