Skip to content

formatConfigSummary

formatConfigSummary(config, command?): string[]

Defined in: _worktrees/docs-release/gaunt-sloth/packages/agent/src/modules/slashCommands.ts:159

Build the compact, read-only /config summary (GS2-1): a handful of the most orienting resolved-config fields, one per line, with a pointer to gth config print for the full view. Pure and secret-free — it only reads non-sensitive scalar fields (never API keys / the live llm instance). Used by the App to fill SlashCommandContext.configSummary.

CFG-25 — filesystem is a precedence-picked per-command field (GS2-60), so the panel prints the EFFECTIVE value for the running command, read from config.commands[command].filesystem — where the GS2-60 resolution already baked the correct 4-layer precedence — falling back to the top-level value, exactly the read getEffectiveConfig performs (no precedence re-derived here). When the effective and top-level values differ, both are shown (Filesystem: all (code; top-level: none)) so the top-level default can never understate what the session can actually do. Of the other precedence-picked fields (builtInTools/allowedTools/binaryFormats), none are printed by this panel, so none can misreport the same way.

ConfigSummaryInput

string

string[]