Skip to content

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.

chore(ui): clear the style gate hits outside the chat surfaces

Bernhard Jackiewicz016861e0e5a6
diff --git a/graph-ui/README.md b/graph-ui/README.md
index 3c0711f38..60795bab5 100644
--- a/graph-ui/README.md
+++ b/graph-ui/README.md
@@ -161,10 +161,10 @@ flag, activity polling is disabled and an old Agents workspace selection opens
Explore. Browser-local chat is independent of this feature.
This is recorded tool activity from configured adapters, not automatic agent
-observability. The bundled adapter supports Claude Code PostToolUse; other
-clients need their own adapter. The flag does not install hooks or delete any
-existing events in the daemon's SQLite store. Even in an enabled build, the
-reader must turn activity on before the browser polls for events.
+observability. The bundled adapter supports the PostToolUse hook installed
+below; other clients need their own adapter. The flag does not install hooks or
+delete any existing events in the daemon's SQLite store. Even in an enabled
+build, the reader must turn activity on before the browser polls for events.
Arbeiten KI-Agenten in demselben Repository, kann die Galaxie sie zeigen: je
Agent ein kleiner leuchtender Koerper, der den Symbolknoten umkreist, an dem er
diff --git a/graph-ui/fixtures/adr/cbm-preview.md b/graph-ui/fixtures/adr/cbm-preview.md
index f63153c00..da314a950 100644
--- a/graph-ui/fixtures/adr/cbm-preview.md
+++ b/graph-ui/fixtures/adr/cbm-preview.md
@@ -2,7 +2,7 @@
> Preview examples for cbm-preview. These editable notes capture frontend design choices discussed during development; they are not a historical ADR archive or graph-inferred facts. Status: proposed for review.
-## 001 — Explain architecture from evidence
+## 001: Explain architecture from evidence
**Status:** Proposed · **Scope:** Architecture workspace
@@ -22,7 +22,7 @@ Combine indexed graph relationships with source evidence. Keep the repository ma
**Implementation references:** `graph-ui/src/architecture/`, `src/store/architecture_projection.c`.
-## 002 — Keep browser AI optional
+## 002: Keep browser AI optional
**Status:** Proposed · **Scope:** Local chat
@@ -44,7 +44,7 @@ Run the chat model locally in the browser after explicit setup. Download weights
**Implementation references:** `graph-ui/src/browser-ai/`, `graph-ui/src/reader/MonacoReader.tsx`.
-## 003 — Keep agent activity experimental
+## 003: Keep agent activity experimental
**Status:** Proposed · **Scope:** Agents workspace
diff --git a/graph-ui/fixtures/adr/train-ticket.md b/graph-ui/fixtures/adr/train-ticket.md
index bd035961f..f6ae48f32 100644
--- a/graph-ui/fixtures/adr/train-ticket.md
+++ b/graph-ui/fixtures/adr/train-ticket.md
@@ -2,7 +2,7 @@
> Preview examples for the indexed Train Ticket repository. These are proposed review notes for exercising the ADR workspace, not decisions attributed to the upstream maintainers.
-## 001 — Review services as deployment boundaries
+## 001: Review services as deployment boundaries
**Status:** Proposed · **Scope:** Routes review
@@ -20,7 +20,7 @@ Use detected service and container boundaries to organize the routes review. Kee
- A declared dependency alone does not prove that a request is sent.
- Services without discovered connections should remain visible.
-## 002 — Follow a request through its evidence
+## 002: Follow a request through its evidence
**Status:** Proposed · **Scope:** Cross-service investigation
diff --git a/graph-ui/fixtures/adr/voting-services.md b/graph-ui/fixtures/adr/voting-services.md
index 3bbbd5b85..c253837e2 100644
--- a/graph-ui/fixtures/adr/voting-services.md
+++ b/graph-ui/fixtures/adr/voting-services.md
@@ -2,7 +2,7 @@
> Preview example for voting-services. This proposed review note is test content, not an upstream architectural decision.
-## 001 — Distinguish declared and observed connections
+## 001: Distinguish declared and observed connections
**Status:** Proposed · **Scope:** Service map review
diff --git a/graph-ui/src/App.tsx b/graph-ui/src/App.tsx
index 33e236c5a..570ea10ba 100644
--- a/graph-ui/src/App.tsx
+++ b/graph-ui/src/App.tsx
@@ -4314,8 +4314,8 @@ export default function App(): JSX.Element {
{
key: 'projects',
shortcut: 'p',
- label: 'Add project index',
- title: 'Choose a repository folder to index',
+ label: messages.projects.menuLabel,
+ title: messages.menu.projects,
onSelect: () => setProjectsOpen((open) => !open),
},
/*
@@ -4574,7 +4574,7 @@ export default function App(): JSX.Element {
onSelectShadowNode={(node) => {
setGalaxySelection(undefined);
onSelectionEvidence(selectionEvidenceContext({ project, view: 'galaxy-coverage', source: '/api/layout missed_graph',
- label: `Coverage · ${node.name}`, selected: { id: node.sourceId, name: node.name, path: node.file_path, kind: node.label },
+ label: messages.galaxy.coverageSelection(node.name), selected: { id: node.sourceId, name: node.name, path: node.file_path, kind: node.label },
limitations: 'Coverage metadata only, not a code symbol. Detailed reasons, source ranges, relationships and freshness are unavailable.' }));
}}
onLayout={onLayout}
diff --git a/graph-ui/src/i18n/messages.ts b/graph-ui/src/i18n/messages.ts
index fb5f73525..8c42eba40 100644
--- a/graph-ui/src/i18n/messages.ts
+++ b/graph-ui/src/i18n/messages.ts
@@ -124,7 +124,7 @@ export const messages = {
impact: 'atlas: what a change would reach, and what covers it (alt+c)',
helpOpen: 'help: what this reads, what it cannot do, and every key it listens to (?)',
helpClose: 'help: close this page (?)',
- projects: 'atlas: what this server has indexed, index more, and what the server is doing (alt+p)',
+ projects: 'Choose a repository folder to index',
},
/**
@@ -678,6 +678,8 @@ export const messages = {
/** Was die Statusleiste ueber das Graph-Panel sagt. */
galaxy: {
noLayout: 'no layout',
+ /** The label of a coverage-only selection: a file the graph knows about, not a symbol. */
+ coverageSelection: (name: string): string => `Coverage · ${name}`,
nodeCount: (nodes: number, hidden: boolean): string =>
`${nodes} nodes${hidden ? ' (hidden)' : ''}`,
},
@@ -977,8 +979,8 @@ export const messages = {
panelLabel: 'projects',
close: '[esc] close',
closeLabel: CLOSE,
- /** The entry in the atlas row. The letter sits in brackets. */
- menuLabel: '[p]rojects',
+ /** The entry in the atlas row; alt+p opens it as well. */
+ menuLabel: 'Add project index',
/* ------------------------------------------------------- the list */
@@ -1049,6 +1051,7 @@ export const messages = {
/* -------------------------------------------------------- the adr */
adrTitle: 'Decision record',
+ adrOpen: 'Open ADR',
adrIntro: (project: string): string =>
`The architecture decision record the server keeps for ${project}, as markdown. Saving `
+ 'stores it in the project index; a reindex keeps it.',
diff --git a/graph-ui/src/projects/ProjectsPanel.tsx b/graph-ui/src/projects/ProjectsPanel.tsx
index 7f390e0f4..50bebec9b 100644
--- a/graph-ui/src/projects/ProjectsPanel.tsx
+++ b/graph-ui/src/projects/ProjectsPanel.tsx
@@ -732,7 +732,7 @@ export default function ProjectsPanel(props: ProjectsPanelProps): JSX.Element {
<p className="atlas-projects-text" data-testid="atlas-projects-adr-none">{text.adrNoProject}</p>
)}
{project.length > 0 && props.onOpenAdr && <button type="button" className="atlas-projects-action"
- onClick={props.onOpenAdr}>Open ADR</button>}
+ onClick={props.onOpenAdr}>{text.adrOpen}</button>}
{project.length > 0 && !props.onOpenAdr && (
<>
<p className="atlas-projects-text">{text.adrIntro(project)}</p>
diff --git a/graph-ui/tests/scaffold/operational-client-reference.test.mjs b/graph-ui/tests/scaffold/operational-client-reference.test.mjs
index 298e79a9a..c5e3bb709 100644
--- a/graph-ui/tests/scaffold/operational-client-reference.test.mjs
+++ b/graph-ui/tests/scaffold/operational-client-reference.test.mjs
@@ -23,6 +23,17 @@ test('permits only operational client terms in the exact setup source/test files
assert.equal(operationalClientReference('README.md', instruction + `; written by ${client}`), false);
});
+test('the configuration reference may name only the client configuration variable', () => {
+ const variable = `${client.toUpperCase()}_CONFIG_DIR`;
+ const file = 'src/settings/ConfigReference.tsx';
+ assert.equal(operationalClientReference(file, `['${variable} · CODEX_HOME · KIRO_HOME', 'Agent integration locations.'],`), true);
+ for (const line of [`${client} Code`, `.${client}/settings.json`, `--install-${client}`, `${variable} for ${client}`,
+ `${variable}; written by ${client}`, `${variable}_EXTRA`]) {
+ assert.equal(operationalClientReference(file, line), false, line);
+ }
+ assert.equal(operationalClientReference('src/settings/SettingsPanel.tsx', variable), false);
+});
+
test('authorship claims stay forbidden even beside an otherwise valid protocol reference', () => {
for (const text of [`written by ${client}`, `Co-authored-by: ${client}`,
`generated with ${client}`, `${client} authored this`, `@${client}`]) {
diff --git a/graph-ui/tools/lib/operational-client-reference.mjs b/graph-ui/tools/lib/operational-client-reference.mjs
index 1592e4a80..34780533f 100644
--- a/graph-ui/tools/lib/operational-client-reference.mjs
+++ b/graph-ui/tools/lib/operational-client-reference.mjs
@@ -1,8 +1,9 @@
import { ATTRIBUTION_PATTERNS, NAME_PATTERN, WATCHED_NAMES } from './forbidden-names.mjs';
/** A real integration must identify its client and configuration protocol.
- * This exemption is limited to four operational source/test files and the
- * README's exact installation instructions. Two named local verification JSON
+ * This exemption is limited to four operational source/test files, the
+ * configuration reference's name of the client's own environment variable, and
+ * the README's exact installation instructions. Two named local verification JSON
* files permit only configuration-path/setup-command fields; the named download
* artifact must equal the canonical hook. Authorship claims remain forbidden.
* Names use the guard's existing codepoint source, avoiding self-matches here.
@@ -25,6 +26,10 @@ const README_LINES = new Set([
`adds a PostToolUse entry to \`.${client}/settings.local.json\`, and copies the hook`,
`into \`.${client}/hooks/\`. It refuses conflicting hooks, symlinks and malformed`,
]);
+/** The installer reads this variable, so the configuration reference must name it exactly. */
+const ENVIRONMENT_REFERENCES = new Map([
+ ['src/settings/ConfigReference.tsx', new RegExp(`\\b${client.toUpperCase()}_CONFIG_DIR\\b`, 'g')],
+]);
const REFERENCES = [
new RegExp(`\\b${client} Code\\b`, 'gi'),
new RegExp(`--install-${client}\\b`, 'gi'),
@@ -50,9 +55,11 @@ export function operationalClientReference(path, line, evidence = {}) {
&& evidence.artifact instanceof Uint8Array && evidence.canonicalHook.length > 0
&& evidence.artifact.length === evidence.canonicalHook.length
&& evidence.artifact.every((byte, index) => byte === evidence.canonicalHook[index]);
- if ((!FILES.has(path) && !setupInstruction && !canonicalDownload && !setupEvidenceField(path, line)) || !NAME_PATTERN.test(line)
+ const environment = ENVIRONMENT_REFERENCES.get(path);
+ if ((!FILES.has(path) && !environment && !setupInstruction && !canonicalDownload && !setupEvidenceField(path, line)) || !NAME_PATTERN.test(line)
|| ATTRIBUTION_PATTERNS.some(({ pattern }) => pattern.test(line))) return false;
if (setupInstruction) return true;
+ if (environment) return !NAME_PATTERN.test(line.replace(environment, ''));
let remaining = line;
for (const pattern of REFERENCES) remaining = remaining.replace(pattern, '');
return !NAME_PATTERN.test(remaining);