Skip to content

fix(sidecars): preserve final citation titles - #8198

Merged
lidge-jun merged 1 commit into
lidge-jun:devfrom
oocheol:codex/fix-sidecar-final-citation-titles-20261106
Nov 8, 2026
Merged

lidge-jun merged 1 commit into
lidge-jun:devfrom
oocheol:codex/fix-sidecar-final-citation-titles-20261106

Conversation

@oocheol

@oocheol oocheol commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Fix an early streamed citation suppressing the final response's title for the same URL. A URL-only annotation stayed titleless even when response.completed supplied its title, and an early title could hide a corrected final title.
  • Deduplicate completed-output annotations independently, then merge their safe final titles before streaming-only sources. Preserve a valid streaming title when the final title is absent, blank or invalid. The existing URL/title validation, source-count limit and aggregate byte budget still apply to the merged records.
  • Add 12 regression cases covering both completion aliases, missing/changed titles, fallback, duplicate final URLs, bounded final ordering and sanitization. Update the English/Korean sidecar guides and search contract.

Verification

Windows, Bun 1.4.4, based on latest fetched dev 0a30c5513. This is an independent one-commit PR; it does not include sibling #8197.

  • Red/green: the initial web-search-sources.test.ts metadata regressions failed 5 cases on the unchanged parser (8 passed). After the fix and fallback guards, the complete file passes 17 tests / 0 failures / 24 assertions.
  • bun run test:changed ./tests/web-search/fix-search-frame-shapes.test.ts ./tests/web-search/web-search-eof.test.ts ./tests/web-search/web-search-parse.test.ts ./tests/web-search/web-search.test.ts ./tests/web-search/web-search-terminal-refusal.test.ts ./tests/web-search/web-search-sources.test.ts ./tests/vision/vision-routed.test.ts ./tests/vision/vision-fail-closed.test.ts --parallel=1 --timeout 30000 passed: 208 tests / 0 failures / 616 assertions, 8 files, 32.69 seconds. OCX_TEST_MAIN_TIMEOUT_MS=120000 bounded the wrapper.
  • bun run typecheck — passed, 2,316 files.
  • bun run structure:check, bun scripts/file-size-ratchet.ts, bun run privacy:scan, git diff --check — passed.
  • cd docs-site; bun install --frozen-lockfile; bun run build — passed, 641 pages / 93,146 checked internal links. Existing Vite chunk-size warnings remain.
  • Union check with sibling fix(sidecars): replace repeated text-done snapshots #8197 (23f68f92d): clean temporary merge, then bun test --no-env-file --isolate ./tests/web-search/fix-search-frame-shapes.test.ts ./tests/web-search/web-search-sources.test.ts ./tests/web-search/web-search-eof.test.ts ./tests/web-search/web-search-parse.test.ts --timeout 30000 — 113 passed / 0 failed / 192 assertions, 1.88 seconds. The temporary merge was aborted after validation; this branch retains only its citation fix.

Scope exception: the changed-test command above restricts discovery to the named parser/search/vision files and uses one worker. An earlier unrestricted run over this import graph on this Windows host reached 900 seconds with timeouts and teardown failures. That run is not passing evidence, and it is not represented as a validation of this head. Full unrestricted changed-graph/full-suite and cross-platform validation remain for CI and independent review. No live provider, account or native Codex client was used. This PR remains Draft.

Checklist

  • Scope stays focused and avoids unrelated cleanup.
  • Docs or release notes were updated when needed.
  • Security-sensitive changes were reviewed for secrets, auth, and unsafe defaults. This parser-only patch changes no authentication, credentials, configuration, dependency versions or CI policy.

Review readiness checklist

This PR stays in draft until every box below is ticked. Tick all four boxes once the requirements are met:

  • Required local validation passed; commands, results, and any full-suite exception are documented.

  • I pushed my PR to a recent dev commit (at most 10 behind; a maintainer may still ask for the exact tip before merge).

  • I resolved all correct Codex and CodeRabbit findings.

  • My PR is ready for review.

@coderabbitai

coderabbitai Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Tip

🎯 Customize your risk assessments

Guide how CodeRabbit assesses merge risk and security architecture risk. Highlight sensitive changes and explain your security boundaries using Merge Risk Instructions and Security Risk Instructions in your review settings. Security architecture risk assessments require the Advanced plan or above.

✅ Automatic approvals, with your rules

Let CodeRabbit approve pull requests once required threads are resolved, pre-merge checks pass, and your risk limits are met. Enable Automatic approvals in review settings, with overrides for teams or file paths.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

✅ Deterministic PR hygiene checks passed.

@github-actions github-actions Bot added the bug Something isn't working label Nov 6, 2026
@github-actions

github-actions Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

⏳ DRAFT

  • review readiness checklist open (0/4 boxes ticked).

What to do

  • Tick all four boxes in the PR description once you're done (currently 0/4).

Review readiness checklist

  • ⬜ Required local validation passed; commands, results, and any full-suite exception are documented.
  • ⬜ I pushed my PR to a recent dev commit (at most 10 behind; a maintainer may still ask for the exact tip before merge).
  • ⬜ I resolved all correct Codex and CodeRabbit findings.
  • ⬜ My PR is ready for review.

0/4 boxes ticked.

Automatic draft conversion failed. Please convert this pull request to a draft manually until every box above is ticked.

@lidge-jun
lidge-jun marked this pull request as ready for review November 8, 2026 10:43
@lidge-jun
lidge-jun merged commit a545580 into lidge-jun:dev Nov 8, 2026
27 checks passed
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-08T10:47:39.529721Z b9227c6 Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants