Skip to content

[Obsidian review blockers] - Step 2: Clear strict source errors - #2788

Merged
logancyang merged 1 commit into
codex/issue-285-05-settings-reviewfrom
codex/issue-285-06-strict-source
Aug 9, 2026
Merged

[Obsidian review blockers] - Step 2: Clear strict source errors#2788
logancyang merged 1 commit into
codex/issue-285-05-settings-reviewfrom
codex/issue-285-06-strict-source

Conversation

@logancyang

@logancyang logancyang commented Aug 8, 2026

Copy link
Copy Markdown
Owner

Relates to logancyang/obsidian-copilot-preview#285

Why

Obsidian's review reports error-level findings for broad any suppressions, undocumented lint disables, and a production module that crossed the gallery import fence. Those errors block approval even though they can be removed without changing runtime behavior.

What

This step clears only those error-level source findings:

  • describes required lint suppressions and removes obsolete disables;
  • replaces broad Orama and debounce type escapes with explicit TypeScript contracts; and
  • moves gallery-only provider fixtures behind the existing allowed fixture boundary.

The resulting production JavaScript behavior is unchanged. The final diff is close to line-neutral and does not alter callbacks, logging, prompts, network requests, persistence, settings, or rendered UI.

Non goal

  • Address warning-only async, network, desktop-runtime, DOM, settings-search, CSS, or dependency findings.
  • Change search ranking, index contents, persistence formats, debounce timing, or error handling.
  • Change provider transports, LLM prompts, or user-visible behavior.
  • Add dependencies or CI workflows.

Screenshot

Not applicable — this PR changes source contracts, lint explanations, and development-only fixtures without changing rendered UI.

Risk

Medium

Criterion Status Reason
No behavior change, or a cosmetic/copy/docs/config change visible where it renders, or deterministic tests cover the changed behavior The source edits are comments, types, and development-only fixture placement
A defect would fail CI or be obvious on first use Type and import-boundary mistakes fail build or lint
A revert fully restores prior state, including persisted data No data migration or write path changes
No auth, permissions, secrets, or input-handling surface changes Those surfaces are untouched
No public API, plugin API, message, or on-disk contract changes The tightened types and fixtures are internal
No core-path concurrency, async-lifecycle, or state-machine changes Runtime control flow and scheduling are unchanged
No hot-path behavior lacks deterministic coverage No hot-path behavior changes; the full unit suite and build pass
No new dependency Dependency manifests are unchanged
Human-only behavior stays in one feature area and surfaces quickly There is no user-visible behavior change

Review: focus on the explicit Orama/debounce types, directive descriptions, and gallery fixture boundary; there should be no executable behavior change.

Verification

  1. Run npm run format and npm run lint.
  2. Run npm run build.
  3. Run npm run test -- --runInBand.

@logancyang
logancyang force-pushed the codex/issue-285-06-strict-source branch from 10e9864 to 6fc01f3 Compare August 8, 2026 23:34
@logancyang
logancyang marked this pull request as ready for review August 8, 2026 23:40
@logancyang
logancyang force-pushed the codex/issue-285-06-strict-source branch 2 times, most recently from 6a50317 to 710192b Compare August 9, 2026 00:50
@logancyang
logancyang force-pushed the codex/issue-285-06-strict-source branch from 710192b to c4ff0a5 Compare August 9, 2026 01:18
@logancyang logancyang changed the title [Obsidian review blockers] - Step 6: Tighten source contracts [Obsidian review blockers] - Step 2: Clear strict source errors Aug 9, 2026
@logancyang

Copy link
Copy Markdown
Owner Author

Conservative risk disposition

Risk: Medium — retained for error-level source findings only.

This PR was reduced to directive descriptions/removal of obsolete disables, explicit TypeScript contracts, and development-only gallery fixture placement. Callback forwarding, logging changes, provider behavior, prompts, persistence, and rendered UI were reverted. The final layer is near line-neutral and contains no runtime dependency change.

Recommendation: keep this as Step 2, reviewing for executable equivalence. Warning-only source cleanup remains deferred.

@logancyang logancyang closed this Aug 9, 2026
@logancyang logancyang reopened this Aug 9, 2026
@logancyang
logancyang force-pushed the codex/issue-285-06-strict-source branch from c4ff0a5 to 51c7ba7 Compare August 9, 2026 01:49
@logancyang
logancyang force-pushed the codex/issue-285-06-strict-source branch from 51c7ba7 to 9f55d9a Compare August 9, 2026 02:42
@logancyang
logancyang merged commit 9fc3caa into master Aug 9, 2026
2 checks passed
@logancyang
logancyang deleted the codex/issue-285-06-strict-source branch August 9, 2026 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant