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.
JavaScript agentic-codingai-agentsai-governanceautonomous-agentsclaude-codeclicode-reviewcodexcoding-agentsdeveloper-toolsgit-hooksllmlocal-firstmulti-agentsoftware-factoryspec-driven-developmentverificationvibe-coding
fix(init): retain verbose view failure details [I1,N26]
Corey Olson3504c08da07c
diff --git a/src/commands/init.js b/src/commands/init.jsindex 345e2616..998f3401 100644--- a/src/commands/init.js+++ b/src/commands/init.js@@ -100,7 +100,7 @@ export async function run(io, { values }) {// Once registered, a background view lists this board for pullboard.dev [H5,N26].const view = await keepViewRunning();io.result?.({ ...result, view });- const viewLine = initViewLine(view);+ const viewLine = initViewLine(view, { verbose: values.verbose });if (viewLine) io.say(viewLine);// Sharing remains a separate choice; --yes confirms only the setup commit.const code = await offerRelayAtInit(info.root, io, { details: values.verbose === true });diff --git a/src/init-finish.js b/src/init-finish.jsindex da3695d1..185bede2 100644--- a/src/init-finish.js+++ b/src/init-finish.js@@ -53,10 +53,12 @@ export function initNextLine(agentSession) {}/** Describe the view without suggesting process termination, including when its port belongs to another program. */-export function initViewLine(view) {- if (['started', 'running'].includes(view.state)) return `Pullboard view is running at http://127.0.0.1:${view.port}.`;+export function initViewLine(view, { verbose = false } = {}) {+ if (['started', 'running'].includes(view.state)) return `Pullboard view is running at http://127.0.0.1:${view.port}.${verbose && view.log ? ` Log: ${view.log}` : ''}`;if (view.state === 'busy') return `Port ${view.port} is in use; the background view did not start.`;- if (view.state === 'failed') return 'The background view did not start; setup is ready.';+ if (view.state === 'failed') return verbose+ ? `The background view did not start: ${view.message}${view.log ? ` (log: ${view.log})` : ''}`+ : 'The background view did not start; setup is ready.';return null;}diff --git a/test/init-short-fixture.js b/test/init-short-fixture.jsindex 7d097df5..b3bafd8b 100644--- a/test/init-short-fixture.js+++ b/test/init-short-fixture.js@@ -15,7 +15,7 @@ export async function assertShortInit(t, sandbox) {const failures = [];/** Collect independent output assertions while allowing setup failures to retain their real cause. */const observe = (check) => { try { check(); } catch (error) { if (error.code !== 'ERR_ASSERTION') throw error; failures.push(error.message); } };- for (const mode of ['plain', 'blueprint', 'busy']) {+ for (const mode of ['plain', 'blueprint', 'busy', 'failed']) {for (const verbose of [false, true]) {const box = sandbox();const repo = join(box.dir, `${mode}-${verbose ? 'verbose' : 'default'}`);@@ -25,6 +25,10 @@ export async function assertShortInit(t, sandbox) {box.env.PULLBOARD_VIEW_BACKGROUND = '1';box.env.PULLBOARD_VIEW_PORT = String(lease.port);}+ if (mode === 'failed') {+ box.env.PULLBOARD_VIEW_BACKGROUND = '1';+ box.env.PULLBOARD_VIEW_PORT = 'not-a-port';+ }const args = ['init', ...(mode === 'blueprint' ? ['--blueprint', 'web-app'] : []), ...(verbose ? ['--verbose'] : [])];const result = box.run(repo, ...args);assert.equal(result.code, 0, result.err || result.out);@@ -46,6 +50,7 @@ export async function assertShortInit(t, sandbox) {observe(() => assert.match(visible, new RegExp(`(?:port|Port) ${lease.port} .*in use`, 'u'), `${label}: actual port contention is reported`));assert.ok(held.listening, 'init leaves the owned listener running');}+ if (mode === 'failed' && verbose) observe(() => assert.match(visible, /PULLBOARD_VIEW_PORT is a number from 0 to 65535/u, 'verbose preserves the actual view failure diagnostic'));assert.ok(existsSync(join(repo, 'AGENTS.md')), 'the short report still installs agent instructions');assert.ok(existsSync(join(repo, '.codex', 'rules', 'pullboard.rules')), 'the short report still installs Codex rules');}