Skip to content

Autonomous development for real products. Governed agents build from specs you approve, follow the rules you set, and nothing merges until another agent proves it. Your decisions, judgement and taste are the bar that work must clear. Declare your vision and let agents build it.

fix(presence): preserve import and outside-repo guidance [C7,N37]

Corey Olsonf38a98c5adaf
diff --git a/src/cli-presence.js b/src/cli-presence.js
index 127a44ba..732e78ee 100644
--- a/src/cli-presence.js
+++ b/src/cli-presence.js
@@ -1,6 +1,10 @@
/** One authenticated, machine-local heartbeat per command, independent of shared-board write locks [B3]. */
import { context } from './cli-read-context.js';
-import { agentAt, closeBoard, openBoardForRead } from './board-query.js';
+import {
+ agentAt,
+ closeBoard,
+ openBoardForRead,
+} from './board-query.js';
import { heartbeatSeat } from './seat-presence.js';
const recorded = new WeakSet();
@@ -16,6 +20,6 @@ export function heartbeatCommand(io) {
const seat = agentAt(board, ctx.info.root);
if (seat && heartbeatSeat(board, seat.agent_id)) recorded.add(io);
} catch (error) {
- if (error.code !== 'NO_CONFIG') io.err(`presence heartbeat unavailable: ${error.message}`);
+ if (!['NO_CONFIG', 'NOT_A_REPO'].includes(error.code)) io.err(`presence heartbeat unavailable: ${error.message}`);
} finally { if (board) closeBoard(board); }
}