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(view): preserve verdict note lines and literal references [N38,N26]
Corey Olsonddc98c92bafa
diff --git a/src/cockpit.js b/src/cockpit.jsindex 846d5323..830f7b87 100644--- a/src/cockpit.js+++ b/src/cockpit.js@@ -314,7 +314,7 @@ function shoutAgentName(id) {return '<span class="agent-label' + (prefix ? ' prefix' : '') + '" title="' + esc(name) + '" role="group" aria-label="' + esc(name) + '">' + (prefix ? label + address : address + label) + '</span>';}/** Render a review note with escaped text and references bound to the selected board. */-const verdictHtml = (v, titles) => '<div class="verdict ' + (v.decision === 'ACCEPT' ? 'yes' : 'no') + '"><b>' + esc(v.decision) + ' ' + esc(v.reason) + '</b><span class="by">' + esc(agentName(v.by)) + ' · ' + when(v.at) + ' · at ' + esc(String(v.commit || '').slice(0, 12)) + '</span><div class="note">' + rich(visibleVerdictNote(v.reason, v.note), titles) + '</div></div>';+const verdictHtml = (v, titles) => '<div class="verdict ' + (v.decision === 'ACCEPT' ? 'yes' : 'no') + '"><b>' + esc(v.decision) + ' ' + esc(v.reason) + '</b><span class="by">' + esc(agentName(v.by)) + ' · ' + when(v.at) + ' · at ' + esc(String(v.commit || '').slice(0, 12)) + '</span><div class="note">' + inline(visibleVerdictNote(v.reason, v.note), titles) + '</div></div>';const stateOf = (i) => i.status === 'claimed' ? 'building' : i.status === 'submitted' ? 'verify' : i.status === 'verified' ? 'verified' : i.status === 'withdrawn' ? 'withdrawn' : i.verdict && i.verdict.decision === 'REJECT' ? 'back' : 'open';const STATES = { building: ['building', 'busy'], verify: ['to verify', 'warn'], back: ['sent back', 'no'], verified: ['verified', 'ok'], open: ['unclaimed', 'free'], withdrawn: ['withdrawn', ''] };const chip = (s) => '<span class="chip ' + STATES[s][1] + '">' + STATES[s][0] + '</span>';diff --git a/test/cockpit/addresses.test.js b/test/cockpit/addresses.test.jsindex f9279a40..340c7a6d 100644--- a/test/cockpit/addresses.test.js+++ b/test/cockpit/addresses.test.js@@ -202,7 +202,7 @@ test('a modified click opens a new tab [N38,N26]', { timeout: 90_000 }, async ()const beforeTargets = (await chrome.send('Target.getTargets')).targetInfos.filter(row => row.type === 'page').map(row => row.targetId).sort();await press(chrome, `document.querySelector('#detail .verdict .note code')`, input);const afterTargets = (await chrome.send('Target.getTargets')).targetInfos.filter(row => row.type === 'page').map(row => row.targetId).sort();- assert.deepEqual(afterTargets, beforeTargets, 'modified click on literal verdict code opens no tab');+ assert.deepEqual(afterTargets.filter(id => !beforeTargets.includes(id)), [], 'modified click on literal verdict code opens no tab');assert.equal(await chrome.stable('location.pathname'), '/items/1', 'literal code leaves the original tab in place');await press(chrome, verdictSelector, input);const opened = await targetForHref(profile, verdictHref);