Catch Obsidian review regressions and clear low-risk warnings - #2796
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bc2bab701c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| } | ||
| ); | ||
|
|
||
| test("writeFile preserves arbitrary object content", () => { |
There was a problem hiding this comment.
Group the write-file case under its callable
This new case is placed directly in a topic-based suite and uses test(...), so coverage for createWriteFileTool() is not organized under the required single describe("createWriteFileTool()", ...) callable group. This makes callable ownership ambiguous as this shared schema suite grows; move the case into the callable group and express the behavior with it(...).
AGENTS.md reference: AGENTS.md:L25-L25
Useful? React with 👍 / 👎.
Fixes logancyang/obsidian-copilot-preview#285
Why
The authenticated Obsidian reviewer found inputs and dependency guidance that our required local gate did not reproduce. CI could therefore pass a commit that Obsidian rejected. The same report contains warning-only findings that are safe to remove mechanically, while other warnings would require risky runtime or UI changes.
What
Agent and maintainer guidance now requires the same preflight and tells reviewers how to classify findings without suppressing rules or changing behavior for a green result.
Non goal
fetch, async UI handlers, settings search, or risky CSS selectors in this PR.Screenshot
Not applicable — this PR has no intended visual change. The element-helper substitutions create the same tags, classes, text, and controls.
Risk
Low
dotenvis reclassified from runtime to development-only; its resolved version is unchangedReview: run Verification steps 1–3; inspect
lintRuntimeDependenciesinscripts/review-obsidian-package.mjs, its runtime/development fixtures inscripts/review-obsidian-fixtures.mjs,compactXmlBlockinsrc/context/L2ContextCompactor.ts, and thewriteFileSchemacontent branch insrc/tools/ComposerTools.ts.Verification
npm run review:obsidian:fixtures; it must pass while proving invalid source/style/manifest inputs are rejected and runtime dependency guidance remains warning-only.npm run review:obsidian; it must finish with zero errors while retaining warning output and blocking only critical production advisories.npm run test:mobile-load; the production bundle must build and pass the mobile-load smoke test.Note
CLAUDE.mdis a symlink toAGENTS.md, so the new Obsidian review guidance has one canonical source and is read by both Claude and other repository agents.