Conversation
… paths, doc tool name, symbol coords Agent-Logs-Url: https://github.com/Looted/kibi/sessions/c816f8d7-4203-4132-9532-c6d246a496bd Co-authored-by: Looted <6255880+Looted@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This PR addresses prior review feedback across the OpenCode plugin tests, path defaults, and Kibi documentation/manifest metadata to improve correctness and alignment with the CLI’s expected documentation layout.
Changes:
- Fix test isolation in
workspace-health.test.tsby creating all standard documentation dirs before asserting missing-config behavior. - Align OpenCode’s default sync/include paths in
file-filter.tstodocumentation/...-prefixed locations to avoid incorrect fallbacks on partial overrides. - Update docs/manifest metadata: correct the ADR tool name reference and refresh
symbols.yamlcoordinates forgetKbExistenceTargets.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| packages/opencode/tests/workspace-health.test.ts | Ensures missing-config test no longer fails due to unrelated missing doc dirs. |
| packages/opencode/tests/file-filter.test.ts | Removes unused variable to reduce dead code. |
| packages/opencode/src/file-filter.ts | Updates default path globs to documentation/-prefixed patterns to match expected layout. |
| documentation/adr/ADR-008.md | Updates tool name reference to kb_symbols_refresh. |
| documentation/symbols.yaml | Corrects generated coordinate ranges for SYM-getKbExistenceTargets. |
| // Local copy of DEFAULT_CONFIG.paths to avoid cross-package TS rootDir issues. | ||
| // Must stay in sync with DEFAULT_CONFIG.paths in packages/cli/src/utils/config.ts. |
There was a problem hiding this comment.
The comment says this is a local copy of DEFAULT_CONFIG.paths, but the values here are glob patterns (documentation/.../**/*.md) rather than the directory roots used by DEFAULT_CONFIG.paths in packages/cli/src/utils/config.ts. This is misleading for future maintainers and may cause the constant to drift from the intended source of truth; please clarify the comment (or reference the exact CLI constant you’re mirroring, e.g. DEFAULT_CONFIG.paths + glob normalization).
| // Local copy of DEFAULT_CONFIG.paths to avoid cross-package TS rootDir issues. | |
| // Must stay in sync with DEFAULT_CONFIG.paths in packages/cli/src/utils/config.ts. | |
| // Mirror of DEFAULT_CONFIG.paths (packages/cli/src/utils/config.ts), | |
| // with each directory root expanded to the markdown glob used for matching here. |
Addresses five review findings from the bootstrap path fix PR.
Changes
workspace-health.test.ts: "detects missing .kb/config.json" was only creating 5 of 7 doc dirs, somissingDocDirswas non-empty and the test wasn't strictly isolating missing-config behavior. Now creates allKIBI_DOC_DIRSentries before asserting.file-filter.test.ts: Remove unusedorigDirvariable.file-filter.ts:DEFAULT_SYNC_PATHSused root-level globs (requirements/**/*.md) instead of thedocumentation/-prefixed paths thatDEFAULT_CONFIG.pathsin the CLI defines. Partial user overrides caused unoverridden keys to silently fall back to wrong root-level directories, producing false bootstrap warnings.documentation/adr/ADR-008.md: Update stale`kb.symbols.refresh`reference →`kb_symbols_refresh`.documentation/symbols.yaml: CorrectSYM-getKbExistenceTargetscoordinates:sourceLine 71→72(actual declaration),sourceEndLine 86→102(actual closing brace).🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.