Skip to content

Include previous-session error logs in issue reports - #7

Merged
ctoth merged 2 commits into
masterfrom
improve/log-attachments
Oct 29, 2026
Merged

ctoth merged 2 commits into
masterfrom
improve/log-attachments

Conversation

@ctoth

@ctoth ctoth commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Goal

Attach the previous session's error log to issue reports when it exists.

State

Collect the existing current error log and its .old sibling through the existing log_paths list. Omit missing files, directories and an unavailable error_log_path. Preserve dialog cancellation, metadata, send scheduling and reporting text. Independently based on integrated master; integration PR #1 has now been merged by other work, so its existing composition CI is on master. No open PR is this branch's base.

Decisions and why

app_framework renames errors.log to errors.log.old on the next startup. A report submitted after restarting otherwise omits the preceding crash evidence. issue_reporter already accepts multiple paths; no transport or storage changes are needed. The missing-path behavior also works with app_framework's separate failed-logging PR.

Surprises

The report-feedback worktree has separate changes in progress. This branch does not modify it or include its reporting-wording change.

Next step

Read this PR's existing composition CI. File presence checks do not guarantee a file remains available until the sender opens it. No production submission, merge or release.

@ctoth
ctoth changed the base branch from improve/integration-contract to master October 29, 2026 18:28
@ctoth
ctoth force-pushed the improve/log-attachments branch from a7bb598 to 36fd1ad Compare October 29, 2026 18:32
ctoth added 2 commits October 29, 2026 12:35
PR #5 removed the os import from interface.py, so the os.path.isfile call
would raise NameError. The report success test now supplies real current
and previous-session logs, and a separate test covers missing logs.
@ctoth
ctoth force-pushed the improve/log-attachments branch from 36fd1ad to 692ee17 Compare October 29, 2026 18:35
@ctoth
ctoth merged commit 5812fc2 into master Oct 29, 2026
1 check passed
@ctoth
ctoth deleted the improve/log-attachments branch October 29, 2026 18:37
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.

1 participant