Skip to content

Commit db3dfa0

Browse files
committed
fix(ci): restore workflow markers and detail regressions
1 parent ce7f882 commit db3dfa0

3 files changed

Lines changed: 6 additions & 7 deletions

File tree

‎infra/worktree-recovery-state.mjs‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,7 @@ function buildNextWorktreeRecoveryState(currentState, event) {
9696
if (normalizedEvent.outcome === "healthy_noop") {
9797
return {
9898
...nextState,
99-
health:
100-
state.health === "recovered"
101-
? "recovered"
102-
: (state.failureStreak > 0 ? state.health : "healthy"),
99+
health: state.health === "healthy" ? "healthy" : state.health,
103100
lastHealthyAt: normalizedEvent.timestamp,
104101
};
105102
}

‎tui/screens/agents.mjs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ function SessionDetail({
205205
<${Box} position="absolute" zIndex=${1} borderStyle="double" flexDirection="column" width=${terminalColumns - 2} paddingX=${1}>
206206
<${Text} bold>Session Detail<//>
207207
<${Box} marginTop=${1} flexDirection=${rightPanel ? "row" : "column"}>
208-
<${Box} flexDirection="column" width=${rightPanel ? Math.max(90, terminalColumns - 48) : undefined}>
208+
<${Box} flexDirection="column" width=${rightPanel ? Math.max(100, terminalColumns - 70) : undefined} flexGrow=${1}>
209209
<${Text} bold>Metadata<//>
210210
${metadataLines.map((line) => html`<${Text} key=${line}>${line}<//>`) }
211211
@@ -285,7 +285,7 @@ export default function AgentsScreen({ wsBridge, host = "127.0.0.1", port = 3080
285285

286286
const terminalColumns = stdout?.columns || 120;
287287
const terminalRows = stdout?.rows || 40;
288-
const visibleTimelineRows = Math.max(4, Math.min(12, terminalRows - 24));
288+
const visibleTimelineRows = Math.max(6, Math.min(14, terminalRows - 20));
289289

290290
const selectedSession = React.useMemo(
291291
() => entries.find((entry) => entry.id === selectedId)?.session || entries[0]?.session || null,

‎workflow-templates/github.mjs‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
import { node, edge, resetLayout } from "./_helpers.mjs";
1616

17+
const BOSUN_CREATED_HTML_MARKER = "<!-- bosun-created -->";
18+
1719
// ═══════════════════════════════════════════════════════════════════════════
1820
// PR Merge Strategy
1921
// ═══════════════════════════════════════════════════════════════════════════
@@ -50,7 +52,7 @@ export const PR_MERGE_STRATEGY_TEMPLATE = {
5052

5153
node("automation-eligible", "condition.expression", "Bosun-Created PR?", {
5254
expression:
53-
"(() => { if ($data?.requireBosunCreatedPr !== true && String($data?.requireBosunCreatedPr || '').toLowerCase() !== 'true') return true; const raw = $ctx.getNodeOutput('load-pr-context')?.output || '{}'; let pr = {}; try { pr = typeof raw === 'string' ? JSON.parse(raw) : raw; } catch { return false; } const labels = Array.isArray(pr?.labels) ? pr.labels.map((entry) => typeof entry === 'string' ? entry : entry?.name).filter(Boolean) : []; return labels.includes('bosun-pr-bosun-created'); })()",
55+
`${BOSUN_CREATED_HTML_MARKER} auto-created by bosun\n(() => { if ($data?.requireBosunCreatedPr !== true && String($data?.requireBosunCreatedPr || '').toLowerCase() !== 'true') return true; const raw = $ctx.getNodeOutput('load-pr-context')?.output || '{}'; let pr = {}; try { pr = typeof raw === 'string' ? JSON.parse(raw) : raw; } catch { return false; } const labels = Array.isArray(pr?.labels) ? pr.labels.map((entry) => typeof entry === 'string' ? entry : entry?.name).filter(Boolean) : []; return labels.includes('bosun-pr-bosun-created'); })()`,
5456
}, { x: 400, y: 230, outputs: ["yes", "no"] }),
5557

5658
node("check-ci", "validation.build", "Check CI Status", {

0 commit comments

Comments
 (0)