open-code-review/internal
chethanuk 05bedc6f6a
fix(viewer): use [ocr] log prefix for consistency (#420)
renderTemplate logged its template-execution error with a [viewer] prefix
while the rest of the project logs under the [ocr prefix family, making
the line invisible to a grep '\[ocr' triage pass.

A census of bracketed prefixes across all Go sources shows [viewer] was
the only stdout prefix sharing no prefix with [ocr:

  "[ocr]          100 sites
  "[ocr session]    2 sites (internal/session) - deliberate sub-namespace,
                            left unchanged
  "[viewer]         1 site  - the outlier fixed here

Remaining bracketed literals are not log prefixes and are untouched:
[bug]/[low] are buildBadge() category/severity expectations and
[A][M][D][R][B][S] are statusBadge() file-status badges, both in
cmd/opencodereview tests.

Log text only: no test, parser, doc, or CI check consumes the string.
TestRenderTemplate_ExecutionError exercises this path but asserts only
the Content-Type header, so it passes unchanged.

Closes #415
2026-07-21 16:58:18 +08:00
..
agent refactor(agent,scan): share one 80% token threshold (#421) 2026-07-21 16:57:28 +08:00
config feat: add pot code review rules (#406) 2026-07-20 16:09:08 +08:00
delegate feat(delegate): add delegation mode for host-agent driven code review (#383) 2026-07-16 13:10:54 +08:00
diff fix(diff): add --end-of-options guard and no-commit regression test for workspace diff (#376) 2026-07-17 20:29:51 +08:00
gitcmd test: expand unit test coverage for agent, llm, llmloop, and tool packages 2026-06-26 23:09:11 +08:00
llm fix(llmloop): guard nil tool-call arguments map to prevent panic (#393) 2026-07-21 13:24:50 +08:00
llmloop refactor(agent,scan): share one 80% token threshold (#421) 2026-07-21 16:57:28 +08:00
mcp test: fix golangci-lint errcheck/staticcheck issues in test code (#323) 2026-07-08 22:46:18 +08:00
model test: fix golangci-lint errcheck/staticcheck issues in test code (#323) 2026-07-08 22:46:18 +08:00
pathutil test: fix golangci-lint errcheck/staticcheck issues in test code (#323) 2026-07-08 22:46:18 +08:00
release fix(build): improve Windows support based on PR #13 review feedback 2026-06-02 22:37:27 +08:00
scan refactor(agent,scan): share one 80% token threshold (#421) 2026-07-21 16:57:28 +08:00
session feat(review): add resumable sessions and session inspection (#306) 2026-07-09 11:43:11 +08:00
stdout test: add unit tests for output_helpers, config, model, stdout, and telemetry packages 2026-06-26 23:26:49 +08:00
suggestdiff test: add unit tests for pure logic functions across 6 packages 2026-06-26 22:41:35 +08:00
telemetry docs(telemetry): explain why checkMetricErr intentionally ignores errors (#418) 2026-07-21 16:08:44 +08:00
tool fix(tool): reject traversal pathspecs in code_search (#303) 2026-07-09 13:45:24 +08:00
viewer fix(viewer): use [ocr] log prefix for consistency (#420) 2026-07-21 16:58:18 +08:00