Skip to content

Fix JSON BOM tickets and exception= log fields - #2

Merged
dkupratis-debug merged 1 commit into
mainfrom
cursor/fix-bom-and-exception-fields-ee63
Nov 11, 2026
Merged

dkupratis-debug merged 1 commit into
mainfrom
cursor/fix-bom-and-exception-fields-ee63

Conversation

@dkupratis-debug

Copy link
Copy Markdown
Owner

Summary

Two parser fixes from review of #1, which is already merged:

  • A UTF-8 BOM on a JSON ticket was removed only to decide the format. json.loads then rejected the original text with Unexpected UTF-8 BOM, so ticket2bug exited 2. The BOM is now stripped before the empty check and before decoding.
  • Text logs documented an exception field but only read error_type. Names such as JobFailed, QueueFull, and WorkerStopped fell through to the shared message and were counted as one repeated issue. exception= is now an explicit type, and error_type still wins when both are present.

Tests

ruff check . is clean. pytest reports 57 passed on Python 3.11 and 3.12, including a BOM ticket, a BOM-only file, distinct exception= types, and error_type outranking exception.

Open in Web Open in Cursor 

A UTF-8 BOM was stripped only for format detection, so json.loads still
rejected the ticket. Text logs documented an exception field but only
read error_type, so names like JobFailed collapsed into the message.

Co-authored-by: David Kupratis <dkupratis@student.bccc.edu>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 11, 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-11T16:30:12.293922Z b4cab31 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.

@dkupratis-debug
dkupratis-debug merged commit da5ff78 into main Nov 11, 2026
2 checks passed
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.

2 participants