nit(research): move the call-time _log_value_preview import inside the try in save_research_strategy
Summary
The call-time import of _log_value_preview sits just above the function's try: - an import failure there escapes the function instead of joining the handled path.
| Field | Value |
|---|---|
| Severity | nit |
| Origin | Review of #6756 (post-merge extraction) |
| Review section | Prose reviewer note (final review) |
| Classification | PR-introduced |
| Verified at | main@43061a14ebff |
| Dedup | distinct · 3 hits reviewed |
Trigger
Any transient failure while importing the notes router helper (the import is deliberately call-time to keep FastAPI out of the CLI/MCP import tree - that part stays).
Impact
Today the only caller wraps the call in except Exception, so the blast radius is one warning; moving the import inside the try costs nothing and closes the window.
Pinned evidence
43061a14ebff:src/local_deep_research/web/services/research_service.py:L364-from ..routers.notes import _log_value_previewabove thetry:at :367
Fix direction
Move the import statement inside the existing try: block; keep it call-time (the import-cycle rationale documented in the surrounding comment is unaffected).
Targeted tests
None required (structural nit); the existing save_research_strategy tests cover behavior.
Provenance
Extracted from review of PR #6756 (post-merge extraction).
Source: LearningCircuit/local-deep-research