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): retain plain decision questions with links [N26]
Corey Olson8f192333243a
diff --git a/src/cockpit.js b/src/cockpit.jsindex d38be677..ece194af 100644--- a/src/cockpit.js+++ b/src/cockpit.js@@ -1101,7 +1101,9 @@ function answer(id) {view.answering = ask ? { root: view.root, id: ask.shout_id } : null;$('answering').hidden = !ask;$('answering-who').textContent = ask ? ask.shout_from : '';- $('answering-q').innerHTML = ask ? rich(ask.shout_text, new Map(data.project.items.map((i) => [String(i.id), i.title]))) : '';+ const question = ask ? linked(ask.shout_text, new Map(data.project.items.map((i) => [String(i.id), i.title]))) : '';+ if (question.includes('<button class="ref"')) $('answering-q').innerHTML = question;+ else $('answering-q').textContent = ask ? ask.shout_text : '';if (ask) $('shout-to').value = ask.shout_from;$('shout-to').disabled = Boolean(ask);$('shout-send').textContent = ask ? 'Answer' : 'Shout';diff --git a/test/cockpit.test.js b/test/cockpit.test.jsindex d9d63464..bd251cc0 100644--- a/test/cockpit.test.js+++ b/test/cockpit.test.js@@ -3346,6 +3346,7 @@ test('Roadmap and rule prose references stay inline and open the item on their obox.run(other.repo, 'add', 'web', 'Remote target', '--specs', 'G1', '--criterion', 'target');box.run(other.repo, 'add', 'web', 'Remote title links to #1', '--specs', 'G1', '--criterion', 'title');box.run(demo.repo, 'milestone', 'add', 'Choose #1', '--note', 'Review #1 next.', '--items', '2,beacon-prose#2');+ box.run(demo.repo, 'shout', 'person', 'Choose #1 before shipping.', '--decision');const view = await startView(box);const profile = mkdtempSync(join(tmpdir(), 'pullboard-prose-references-chrome-'));let chrome;@@ -3391,6 +3392,10 @@ test('Roadmap and rule prose references stay inline and open the item on their oassert.equal(await chrome.evaluate("document.querySelectorAll('#detail .verdict .note .ref').length"), 1, 'verdict prose keeps its item reference');await chrome.evaluate("document.querySelector('#detail .verdict .note .ref').click()");await chrome.waitFor("document.querySelector('#detail h2')?.textContent.includes('Local target')");+ await chrome.evaluate("document.querySelector('#needs .ny-open[data-go^=\"decide:\"]').click()");+ assert.equal(await chrome.evaluate("document.querySelectorAll('#answering-q .ref').length"), 1, 'the answering question keeps its inline item reference');+ await chrome.evaluate("document.querySelector('#answering-q .ref').click()");+ await chrome.waitFor("document.querySelector('#detail h2')?.textContent.includes('Local target') && document.querySelector('[data-tab=items].on')");await chrome.evaluate("document.querySelector('[data-tab=roadmap]').click(); document.querySelector('#roadmap .milestone-item[role=button]:not([data-board])').dispatchEvent(new KeyboardEvent('keydown', {key:'Enter',bubbles:true}))");await chrome.waitFor("document.querySelector('#detail h2')?.textContent.includes('Local title links to #1') && document.querySelector('[data-tab=items].on')");}