From ab8d44d696b58df8a79ce3deb7f01191ab1f84f5 Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Sat, 24 Jan 2026 02:51:27 +0100 Subject: [PATCH] feat(coding-agent): tune resource list colors --- .../src/modes/interactive/interactive-mode.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/coding-agent/src/modes/interactive/interactive-mode.ts b/packages/coding-agent/src/modes/interactive/interactive-mode.ts index 5df57cc8..105b17c9 100644 --- a/packages/coding-agent/src/modes/interactive/interactive-mode.ts +++ b/packages/coding-agent/src/modes/interactive/interactive-mode.ts @@ -109,6 +109,7 @@ import { setTheme, setThemeInstance, Theme, + type ThemeColor, theme, } from "./theme/theme.js"; @@ -738,7 +739,7 @@ export class InteractiveMode { const lines: string[] = []; for (const group of groups) { - lines.push(` ${theme.fg("muted", group.scope)}`); + lines.push(` ${theme.fg("accent", group.scope)}`); const sortedPaths = [...group.paths].sort((a, b) => a.localeCompare(b)); for (const p of sortedPaths) { @@ -747,7 +748,7 @@ export class InteractiveMode { const sortedPackages = Array.from(group.packages.entries()).sort(([a], [b]) => a.localeCompare(b)); for (const [source, paths] of sortedPackages) { - lines.push(` ${theme.fg("accent", source)}`); + lines.push(` ${theme.fg("mdLink", source)}`); const sortedPackagePaths = [...paths].sort((a, b) => a.localeCompare(b)); for (const p of sortedPackagePaths) { lines.push(theme.fg("dim", ` ${options.formatPackagePath(p, source)}`)); @@ -866,7 +867,7 @@ export class InteractiveMode { const metadata = this.session.resourceLoader.getPathMetadata(); - const sectionHeader = (name: string) => theme.fg("muted", `[${name}]`); + const sectionHeader = (name: string, color: ThemeColor = "mdHeading") => theme.fg(color, `[${name}]`); const contextFiles = this.session.resourceLoader.getAgentsFiles().agentsFiles; if (contextFiles.length > 0) { @@ -927,7 +928,7 @@ export class InteractiveMode { formatPath: (p) => this.formatDisplayPath(p), formatPackagePath: (p, source) => this.getShortPath(p, source), }); - this.chatContainer.addChild(new Text(`${sectionHeader("Extensions")}\n${extList}`, 0, 0)); + this.chatContainer.addChild(new Text(`${sectionHeader("Extensions", "mdHeading")}\n${extList}`, 0, 0)); this.chatContainer.addChild(new Spacer(1)); }