update docs to reflect XDG_CONFIG_HOME location of config file#1663
Conversation
|
👋 Thanks for the contribution — intake looks complete. Your PR body carries everything the maintainer's validation pipeline reads first: the problem, the reasoning, the human intent behind it, and an AI-disclosure. It will be applied, built, and tested against gate marker read: ai= |
📝 WalkthroughWalkthroughConfiguration references across the web UI, website, and bundled documentation now use ChangesConfiguration path alignment
Estimated code review effort: 1 (Trivial) | ~5 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 6 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (6 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@internal/web/static/app/SettingsPanel.js`:
- Line 34: Align all listed references with EffectiveConfigPath: in
internal/web/static/app/SettingsPanel.js:34 display the configurable XDG path
with the ~/.agent-deck fallback or the backend-resolved path; in
internal/web/static/app/panes/McpPane.js:224 and site/index.html:563 use the
same configurable path; and in llms-full.txt:608 and llms-full.txt:1388 resolve
custom XDG and legacy paths, including the fallback, before sanitizing or
presenting the path.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 858de468-2c90-4bed-b32e-6ea049a975f3
⛔ Files ignored due to path filters (10)
conductor/conductor-claude.mdis excluded by!**/*.mddocs/PER-GROUP-CLAUDE-CONFIG-SPEC.mdis excluded by!**/*.mddocs/SESSION-PERSISTENCE-SPEC.mdis excluded by!**/*.mddocs/rfc/PLUGIN_ATTACH.mdis excluded by!**/*.mdskills/agent-deck/SKILL.mdis excluded by!**/*.mdskills/agent-deck/references/cli-reference.mdis excluded by!**/*.mdskills/agent-deck/references/config-reference.mdis excluded by!**/*.mdskills/agent-deck/references/sandbox.mdis excluded by!**/*.mdskills/agent-deck/references/troubleshooting.mdis excluded by!**/*.mdskills/agent-deck/references/tui-reference.mdis excluded by!**/*.md
📒 Files selected for processing (4)
internal/web/static/app/SettingsPanel.jsinternal/web/static/app/panes/McpPane.jsllms-full.txtsite/index.html
| <div class="kv" data-testid="settings-picker-tools"><span class="k">picker tools</span><span class="v">${(settings.pickerTools || []).join(', ') || 'loading…'}</span></div> | ||
| <div style="font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 8px;"> | ||
| Edit <code>~/.agent-deck/config.toml</code> (<code>[ui] hidden_tools</code>) or use TUI Settings → Visible tools… | ||
| Edit <code>~/.config/agent-deck/config.toml</code> (<code>[ui] hidden_tools</code>) or use TUI Settings → Visible tools… |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
Align all references with the effective configuration path.
EffectiveConfigPath honors XDG_CONFIG_HOME and falls back to ~/.agent-deck, but these changed references either hardcode ~/.config or fail to implement the documented fallback.
internal/web/static/app/SettingsPanel.js#L34-L34: display$XDG_CONFIG_HOME/...with the default, or show the backend-resolved path.internal/web/static/app/panes/McpPane.js#L224-L224: use the configurable XDG path.site/index.html#L563-L563: document the configurable XDG path.llms-full.txt#L608-L608: resolve custom XDG and legacy paths before sanitizing.llms-full.txt#L1388-L1388: apply the same effective-path resolution.
📍 Affects 4 files
internal/web/static/app/SettingsPanel.js#L34-L34(this comment)internal/web/static/app/panes/McpPane.js#L224-L224site/index.html#L563-L563llms-full.txt#L608-L608llms-full.txt#L1388-L1388
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@internal/web/static/app/SettingsPanel.js` at line 34, Align all listed
references with EffectiveConfigPath: in
internal/web/static/app/SettingsPanel.js:34 display the configurable XDG path
with the ~/.agent-deck fallback or the backend-resolved path; in
internal/web/static/app/panes/McpPane.js:224 and site/index.html:563 use the
same configurable path; and in llms-full.txt:608 and llms-full.txt:1388 resolve
custom XDG and legacy paths, including the fallback, before sanitizing or
presenting the path.
…aseline (#1674) Root cause of #1674, two independent problems: 1. Stale baseline: PR #1663 intentionally changed the settings drawer hint text from "Edit ~/.agent-deck/config.toml" to "Edit ~/.config/agent-deck/config.toml" (XDG alignment), but the committed visual baseline was never regenerated, so the weekly run correctly flagged a 726-pixel diff. Baseline regenerated on the CI runner via workflow_dispatch update_baselines=true (run 29690306661) per the documented procedure; only this one PNG changed. 2. Report bug: the issue-filing script walked only top-level data.suites[].specs, but Playwright's JSON reporter nests specs in suites-inside-suites (file suite -> describe suite -> specs), so the issue body said "No detailed results available." despite a full report. Extracted the rendering into .github/scripts/render-visual-details.js with a recursive suite walk, covered by tests/ci/render-visual-details.test.sh. Also hardened the no-data path: a visual step failure with a missing, empty, or unparseable Playwright report is now reported as "NO DATA (skipped)", does not count toward the failure total, and files no issue on its own; a real diff still files. The format validator accepts the new status. Committed by Ashesh Goplani
…tings-drawer baseline (#1678, closes #1674) Root cause of #1674, two independent problems: 1. Stale baseline: PR #1663 intentionally changed the settings drawer hint text from "Edit ~/.agent-deck/config.toml" to "Edit ~/.config/agent-deck/config.toml" (XDG alignment), but the committed visual baseline was never regenerated, so the weekly run correctly flagged a 726-pixel diff. Baseline regenerated on the CI runner via workflow_dispatch update_baselines=true (run 29690306661) per the documented procedure; only this one PNG changed. 2. Report bug: the issue-filing script walked only top-level data.suites[].specs, but Playwright's JSON reporter nests specs in suites-inside-suites (file suite -> describe suite -> specs), so the issue body said "No detailed results available." despite a full report. Extracted the rendering into .github/scripts/render-visual-details.js with a recursive suite walk, covered by tests/ci/render-visual-details.test.sh. Also hardened the no-data path: a visual step failure with a missing, empty, or unparseable Playwright report is now reported as "NO DATA (skipped)", does not count toward the failure total, and files no issue on its own; a real diff still files. The format validator accepts the new status. Committed by Ashesh Goplani
What problem does this solve?
#1660 originally stated that the config file wasn't being written. This was user error stemming from a mismatch between code and documentation. This aligns the documentation with the code (which was determined to be correct based on the discussion in that issue)
Why this change
keep documentation clear and up to date.
User impact
none expected.
Evidence
AI disclosure
Model(s), if AI helped:
DeepSeek V4 Pro
Prompt / session log (optional):
based on #1660 (comment), find references in the documentation to ~/.agent-deck/config.toml and fix them
What actually bothered you
I discovered this project today and thought there was a bug and was looking forward to helping fix it. Turns out, the documentation was lagging.
Checklist
HOME=$(mktemp -d) XDG_CONFIG_HOME= XDG_DATA_HOME= XDG_CACHE_HOME= go test ./...Summary by CodeRabbit
~/.config/agent-deck/config.toml.