Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.
C aiderastclaude-codecode-analysiscode-intelligencecodexcursorcypherdeveloper-toolsgemini-cligraph-visualizationkilocodeknowledge-graphmcpmcp-servermodel-context-protocolopencodesqlitetree-sitterwindsurf
style(ui): replace long dashes in the browser agent code
Bernhard Jackiewiczdb4c441cc9fc
diff --git a/graph-ui/src/browser-ai/BrowserChatDock.test.tsx b/graph-ui/src/browser-ai/BrowserChatDock.test.tsxindex fc8f834c1..e2519bce8 100644--- a/graph-ui/src/browser-ai/BrowserChatDock.test.tsx+++ b/graph-ui/src/browser-ai/BrowserChatDock.test.tsx@@ -337,7 +337,7 @@ describe('persistent local browser chat', () => {it('keeps ready reader source out of the composer without downloading or offering removal', async () => {const { props } = fixture();- const context = reader('Loaded excerpt'); context.source!.partial = 'Only lines 20–80 are loaded.';+ const context = reader('Loaded excerpt'); context.source!.partial = 'Only lines 20-80 are loaded.';await render({ ...props, readerContext: context, attachment: { ...selection, text: 'IGNORED_MANUAL_CODE' } });expect(props.createRuntime).not.toHaveBeenCalled();expect(container.querySelector('[aria-label="Source for next message"]')).toBeNull();@@ -733,7 +733,7 @@ describe('live-browser regressions', () => {afterEach(() => vi.useRealTimers());it('keeps a compact composer and places frozen source beside the manual answer speaker', async () => {const { props, runtime } = fixture();- const original = reader('ORIGINAL_SOURCE'); original.source!.partial = 'Only lines 3–4 were loaded.';+ const original = reader('ORIGINAL_SOURCE'); original.source!.partial = 'Only lines 3-4 were loaded.';const pendingContext = { id: 'graph-source', label: 'Callers', text: 'entry calls original' };await render({ ...props, readerContext: original, pendingContext }); await click('Download & load');const textarea = container.querySelector('textarea')!;@@ -748,7 +748,7 @@ describe('live-browser regressions', () => {expect(response.firstElementChild).toBe(source);expect(source.open).toBe(false);expect(source.querySelector('summary')?.textContent).toContain('Agentⓘ Source');- expect(source.textContent).toContain('Only lines 3–4 were loaded.');+ expect(source.textContent).toContain('Only lines 3-4 were loaded.');expect(source.textContent).toContain('entry calls original');await act(async () => source.querySelector('summary')!.click());expect(source.open).toBe(true);diff --git a/graph-ui/src/browser-ai/BrowserChatDock.tsx b/graph-ui/src/browser-ai/BrowserChatDock.tsxindex ce0a1ee83..46a74fd61 100644--- a/graph-ui/src/browser-ai/BrowserChatDock.tsx+++ b/graph-ui/src/browser-ai/BrowserChatDock.tsx@@ -78,7 +78,7 @@ function PacketSource({ packet, citation }: { packet: PreparedExplanationContextreturn <>{packet.limitations.map((limit, index) => <p className="cbm-chat-evidence-note" key={index}>{limit}</p>)}{citation ? <pre>{citation.quote}</pre> : packet.evidence.slice(0, 3).map(item => <div key={item.id}>- {item.location && <small>{item.location.path}:{item.location.startLine}–{item.location.endLine}</small>}<pre>{item.text}</pre>+ {item.location && <small>{item.location.path}:{item.location.startLine}-{item.location.endLine}</small>}<pre>{item.text}</pre></div>)}</>;}diff --git a/graph-ui/src/browser-ai/reader-chat-context.test.ts b/graph-ui/src/browser-ai/reader-chat-context.test.tsindex 61e32bb48..2fcbb1df3 100644--- a/graph-ui/src/browser-ai/reader-chat-context.test.ts+++ b/graph-ui/src/browser-ai/reader-chat-context.test.ts@@ -51,11 +51,11 @@ describe('automatic Explorer source context', () => {});it('labels missing leading lines and incomplete pages instead of claiming a full file', () => {- const partial = { ...document, firstLine: 8, lastLine: 9, fileLastLine: 50, truncated: true, truncationNote: 'Lines 10–50 were not loaded.' };+ const partial = { ...document, firstLine: 8, lastLine: 9, fileLastLine: 50, truncated: true, truncationNote: 'Lines 10-50 were not loaded.' };const source = readerChatContext({ ...input, document: partial }).source!;expect(source.text).toBe(document.source);- expect(source.partial).toContain('Lines 1–7 are not loaded');- expect(source.partial).toContain('Lines 10–50 were not loaded');+ expect(source.partial).toContain('Lines 1-7 are not loaded');+ expect(source.partial).toContain('Lines 10-50 were not loaded');expect(source.startLine).toBe(8);expect(source.endLine).toBe(10);expect(readerChatContext({ ...input, document: partial, selection: { ...selection, startLine: 9, endLine: 9 } }).source?.kind).toBe('selection');diff --git a/graph-ui/src/browser-ai/reader-chat-context.ts b/graph-ui/src/browser-ai/reader-chat-context.tsindex aa4d1a21b..4636c3797 100644--- a/graph-ui/src/browser-ai/reader-chat-context.ts+++ b/graph-ui/src/browser-ai/reader-chat-context.ts@@ -48,10 +48,10 @@ export function readerChatContext({ project, path, status, document, origin, sel} };}const missing: string[] = [];- if (document.firstLine > 1) missing.push(`Lines 1–${document.firstLine - 1} are not loaded.`);+ if (document.firstLine > 1) missing.push(`Lines 1-${document.firstLine - 1} are not loaded.`);if (document.truncationNote) missing.push(document.truncationNote);else if (document.truncated || (document.fileLastLine !== undefined && document.lastLine < document.fileLastLine)) {- missing.push(`The reader has only lines ${document.firstLine}–${document.lastLine}.`);+ missing.push(`The reader has only lines ${document.firstLine}-${document.lastLine}.`);}if (document.fileLastLine === undefined) missing.push('File length is unknown; this is the source currently loaded in the reader.');return { project, path, status: 'ready', source: {