Skip to content

fix(desktop): preserve APT one-line source token boundaries - #12692

Merged
morluto merged 1 commit into
mainfrom
audit/apt-list-ascii-tokenizer
Nov 20, 2026
Merged

morluto merged 1 commit into
mainfrom
audit/apt-list-ascii-tokenizer

Conversation

@morluto

@morluto morluto commented Nov 20, 2026

Copy link
Copy Markdown
Owner

Problem

REA split one-line APT declarations on JavaScript whitespace and treated every hash as a comment. This could miss a source identity containing a non-breaking space or drop a bracketed Signed-By path containing a hash.

Change

Reuse the ASCII field tokenizer for positional and option words. Classify comments outside bracketed options. Export keeps its existing admission checks. Quoted and percent-decoded effective values remain separate from this change.

Validation

Two cases failed on the previous parser. APT 2.8.4 and 3.2.0 each confirmed four offline index matches. The focused suite passed with 136 tests and seven platform skips. check:fast passed.

Author readiness

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 20, 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-20T02:10:28.273607Z 999971b PR opened
ℹ️ 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.

@greptile-apps

greptile-apps Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] This PR appears safe to merge; no actionable new failures were established.

Summary

Preserves APT one-line source words by using ASCII whitespace boundaries and keeps hashes inside bracketed options.

  • APT source words keep non-ASCII whitespace as data.
  • Hashes inside APT options no longer start comments.

Reviews (3) · Last reviewed commit: "fix(desktop): honor APT one-line separat..." · Reviewed by Greptile

@morluto
morluto enabled auto-merge (squash) November 20, 2026 02:11
@morluto
morluto merged commit 60707ab into main Nov 20, 2026
40 checks passed
@morluto
morluto deleted the audit/apt-list-ascii-tokenizer branch November 20, 2026 02:15
@morluto morluto added bug Something isn't working area: runtime Process capture and runtime observation labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: runtime Process capture and runtime observation bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant