From 6c39f2405b3ba46bef541dd92b59b66b28d51e12 Mon Sep 17 00:00:00 2001 From: VictorGjn <56982152+VictorGjn@users.noreply.github.com> Date: Fri, 3 Apr 2026 16:30:21 +0200 Subject: [PATCH 1/7] fix: reactivePackerWrapper.ts - resolve build error From 38a99d4e2626b396a8f4b0d878eb02b4b2765208 Mon Sep 17 00:00:00 2001 From: VictorGjn <56982152+VictorGjn@users.noreply.github.com> Date: Fri, 3 Apr 2026 16:30:22 +0200 Subject: [PATCH 2/7] fix: TranscriptCompaction.ts - resolve build error --- src/context/TranscriptCompaction.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/context/TranscriptCompaction.ts b/src/context/TranscriptCompaction.ts index 0ccac25..a1c8571 100644 --- a/src/context/TranscriptCompaction.ts +++ b/src/context/TranscriptCompaction.ts @@ -107,8 +107,7 @@ export class TranscriptCompaction { if (toolMsgs.length) { parts.push(`Tool calls: ${toolMsgs.map(m => m.metadata?.toolName ?? 'unknown').join(', ')}`); } - return parts.join(' -'); + return parts.join('\n'); } /** Estimate tokens for a string (rough approximation). */ From c2de0b2ce71ec2156df0359257f71632bd8b31e3 Mon Sep 17 00:00:00 2001 From: VictorGjn <56982152+VictorGjn@users.noreply.github.com> Date: Fri, 3 Apr 2026 16:30:23 +0200 Subject: [PATCH 3/7] fix: PromptRouter.ts - resolve build error --- src/context/PromptRouter.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/context/PromptRouter.ts b/src/context/PromptRouter.ts index 6165c21..39b09c7 100644 --- a/src/context/PromptRouter.ts +++ b/src/context/PromptRouter.ts @@ -133,6 +133,5 @@ export function renderRoutedTools(matches: RoutedMatch Date: Fri, 3 Apr 2026 16:30:23 +0200 Subject: [PATCH 4/7] fix: ExperimentalBadge.tsx - resolve build error --- src/components/ds/ExperimentalBadge.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/ds/ExperimentalBadge.tsx b/src/components/ds/ExperimentalBadge.tsx index 5b52b4e..278a5f7 100644 --- a/src/components/ds/ExperimentalBadge.tsx +++ b/src/components/ds/ExperimentalBadge.tsx @@ -86,14 +86,13 @@ interface ExperimentalGateProps { export function ExperimentalGate({ feature, children, fallback }: ExperimentalGateProps) { const isEnabled = useFeatureFlags((s) => s[feature]); + const t = useTheme(); + const meta = FLAG_META[feature]; if (isEnabled) return <>{children}; if (fallback) return <>{fallback}; - const meta = FLAG_META[feature]; - const t = useTheme(); - return (
Date: Fri, 3 Apr 2026 16:42:16 +0200 Subject: [PATCH 5/7] fix: reactivePackerWrapper.ts - replace raw newline with \n escape --- src/graph/reactivePackerWrapper.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/graph/reactivePackerWrapper.ts b/src/graph/reactivePackerWrapper.ts index d5ce9dc..4f5dd6e 100644 --- a/src/graph/reactivePackerWrapper.ts +++ b/src/graph/reactivePackerWrapper.ts @@ -131,8 +131,7 @@ export function withReactiveCompaction( const contentStr = typeof item.content === 'string' ? item.content : ''; const truncatedLength = oldRatio > 0 ? Math.ceil(contentStr.length * (newRatio / oldRatio)) : contentStr.length; const truncatedContent = contentStr.length > truncatedLength - ? contentStr.slice(0, truncatedLength) + ' -[... truncated by reactive compaction]' + ? contentStr.slice(0, truncatedLength) + '\n[... truncated by reactive compaction]' : contentStr; return { ...item, depth: newDepthNumeric, tokens: newTokens, content: truncatedContent }; } From 534e7830bc35aa98496631133a4cca6a4e80acf7 Mon Sep 17 00:00:00 2001 From: VictorGjn <56982152+VictorGjn@users.noreply.github.com> Date: Fri, 3 Apr 2026 16:44:06 +0200 Subject: [PATCH 6/7] fix: ConstraintsSection.tsx - replace raw newline in split() with \n escape --- src/panels/builder/ConstraintsSection.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/panels/builder/ConstraintsSection.tsx b/src/panels/builder/ConstraintsSection.tsx index d6d0c65..722e335 100644 --- a/src/panels/builder/ConstraintsSection.tsx +++ b/src/panels/builder/ConstraintsSection.tsx @@ -44,8 +44,7 @@ export function ConstraintsSection({ onOpenModal }: { onOpenModal: (config: Cons
Custom Rules - {constraints.customConstraints.split(' -').filter(Boolean).map((rule: string, i: number) => ( + {constraints.customConstraints.split('\n').filter(Boolean).map((rule: string, i: number) => (
{rule} From 17729a05300e5ba935b6a3560a0e88ca477f6730 Mon Sep 17 00:00:00 2001 From: VictorGjn <56982152+VictorGjn@users.noreply.github.com> Date: Fri, 3 Apr 2026 16:48:41 +0200 Subject: [PATCH 7/7] fix: systemFrameBuilder.ts - replace all raw newlines in string literals with \n --- src/services/systemFrameBuilder.ts | 26 ++++++++------------------ 1 file changed, 8 insertions(+), 18 deletions(-) diff --git a/src/services/systemFrameBuilder.ts b/src/services/systemFrameBuilder.ts index fc14167..1696d81 100644 --- a/src/services/systemFrameBuilder.ts +++ b/src/services/systemFrameBuilder.ts @@ -46,8 +46,7 @@ export function buildProvenanceSection(provenance: ProvenanceSummary): string { lines.push(''); } - return lines.join(' -'); + return lines.join('\n'); } export function buildSystemFrame(provenance?: ProvenanceSummary): string { @@ -62,8 +61,7 @@ export function buildSystemFrame(provenance?: ProvenanceSummary): string { if (agentMeta.avatar) identity.push(`Avatar: ${agentMeta.avatar}`); if (agentMeta.tags?.length) identity.push(`Tags: ${agentMeta.tags.join(', ')}`); parts.push(` -${identity.join(' -')} +${identity.join('\n')} `); } @@ -80,17 +78,13 @@ ${identity.join(' lines.push(`Primary Objective: ${instructionState.objectives.primary}`); if (instructionState.objectives.successCriteria.length > 0) lines.push(`Success Criteria: -${instructionState.objectives.successCriteria.map(c => `- ${c}`).join(' -')}`); +${instructionState.objectives.successCriteria.map(c => `- ${c}`).join('\n')}`); if (instructionState.objectives.failureModes.length > 0) lines.push(`Failure Modes to Avoid: -${instructionState.objectives.failureModes.map(f => `- ${f}`).join(' -')}`); +${instructionState.objectives.failureModes.map(f => `- ${f}`).join('\n')}`); } parts.push(` -${lines.join(' - -')} +${lines.join('\n\n')} `); } @@ -106,8 +100,7 @@ ${lines.join(' if (instructionState.constraints.customConstraints) constraints.push(`Additional constraints: ${instructionState.constraints.customConstraints}`); if (constraints.length > 0) parts.push(` -${constraints.map(c => `- ${c}`).join(' -')} +${constraints.map(c => `- ${c}`).join('\n')} `); // Workflow @@ -128,9 +121,7 @@ ${compiled} parts.push(provenanceSection); } - return parts.join(' - -'); + return parts.join('\n\n'); } /** @@ -317,7 +308,6 @@ export function buildToolGuide(): string { } return ` -${lines.join(' -')} +${lines.join('\n')} `; }