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
fix(ui): word the no-context reply as a state, not a promise
Bernhard Jackiewiczf8757fa97c51
diff --git a/graph-ui/src/browser-ai/BrowserChatDock.test.tsx b/graph-ui/src/browser-ai/BrowserChatDock.test.tsxindex 256a7984d..3e74a9930 100644--- a/graph-ui/src/browser-ai/BrowserChatDock.test.tsx+++ b/graph-ui/src/browser-ai/BrowserChatDock.test.tsx@@ -311,7 +311,7 @@ describe('persistent local browser chat', () => {expect(onContextRemoved).toHaveBeenCalledExactlyOnceWith('galaxy-1'); expect(onContextConsumed).not.toHaveBeenCalled();await click('Download & load'); await type('Question'); await click('Send ↑');expect(runtime.chat).not.toHaveBeenCalled();- expect(container.querySelector('.cbm-chat-answer-text')?.textContent).toContain('Nothing is selected for me to explain yet.');+ expect(container.querySelector('.cbm-chat-answer-text')?.textContent).toContain('Nothing is selected for me to explain.');});it('keeps a newer graph selection when an earlier send finishes checking context', async () => {diff --git a/graph-ui/src/browser-ai/chat-context.test.ts b/graph-ui/src/browser-ai/chat-context.test.tsindex 2b98d795b..b47437e28 100644--- a/graph-ui/src/browser-ai/chat-context.test.ts+++ b/graph-ui/src/browser-ai/chat-context.test.ts@@ -16,8 +16,8 @@ describe('questions without context (K11)', () => {});it('names what is missing and how to give context, without blaming the model', () => {- expect(missingContextAnswer('was kannst du mir über den code sagen')).toMatch(/^Es ist noch nichts ausgewählt.*Wähle einen Knoten in Galaxy.*öffne eine Datei in Explore/);- expect(missingContextAnswer('test')).toMatch(/^Nothing is selected for me to explain yet\. Select a node in Galaxy/);+ expect(missingContextAnswer('was kannst du mir über den code sagen')).toMatch(/^Es ist nichts ausgewählt.*Wähle einen Knoten in Galaxy.*öffne eine Datei in Explore/);+ expect(missingContextAnswer('test')).toMatch(/^Nothing is selected for me to explain\. Select a node in Galaxy/);expect(missingContextAnswer('what is this?', { project: 'p', status: 'empty' })).toMatch(/^No file is open in Explore\./);expect(missingContextAnswer('what is this?', { project: 'p', path: 'a.yml', status: 'unavailable' })).toMatch(/^The source of `a\.yml` is not available\./);expect(missingContextAnswer('test')).toContain('_Answered without the model');diff --git a/graph-ui/src/browser-ai/strings.ts b/graph-ui/src/browser-ai/strings.tsindex 773e19b21..04eadac25 100644--- a/graph-ui/src/browser-ai/strings.ts+++ b/graph-ui/src/browser-ai/strings.ts@@ -166,13 +166,13 @@ export const browserChatText = {/** The chat's own reply when a question has no code or graph context (K11), in the language of the question. */export const browserChatContextText = {en: {- nothingSelected: 'Nothing is selected for me to explain yet. Select a node in Galaxy or a part in Architecture, or open a file in Explore, then ask again.',+ nothingSelected: 'Nothing is selected for me to explain. Select a node in Galaxy or a part in Architecture, or open a file in Explore, then ask again.',noFileOpen: 'No file is open in Explore. Open a file, or mark code in it, then ask again.',sourceUnavailable: (path: string) => `The source of \`${path.replace(/`/g, "'")}\` is not available. Open the file again or choose another one, then ask again.`,notAsked: 'Answered without the model: without code or graph facts it could only guess.',},de: {- nothingSelected: 'Es ist noch nichts ausgewählt, das ich erklären könnte. Wähle einen Knoten in Galaxy oder einen Teil in Architecture, oder öffne eine Datei in Explore, und frage dann noch einmal.',+ nothingSelected: 'Es ist nichts ausgewählt, das ich erklären könnte. Wähle einen Knoten in Galaxy oder einen Teil in Architecture, oder öffne eine Datei in Explore, und frage dann noch einmal.',noFileOpen: 'In Explore ist keine Datei geöffnet. Öffne eine Datei oder markiere Code darin und frage dann noch einmal.',sourceUnavailable: (path: string) => `Der Quelltext von \`${path.replace(/`/g, "'")}\` ist nicht verfügbar. Öffne die Datei noch einmal oder wähle eine andere und frage dann noch einmal.`,notAsked: 'Ohne das Modell beantwortet: ohne Code oder Graph-Fakten könnte es nur raten.',