Skip to content

Fix session log#896

Merged
binaricat merged 5 commits into
binaricat:mainfrom
yuzifu:fix-session-log
May 6, 2026
Merged

Fix session log#896
binaricat merged 5 commits into
binaricat:mainfrom
yuzifu:fix-session-log

Conversation

@yuzifu
Copy link
Copy Markdown
Contributor

@yuzifu yuzifu commented May 4, 2026

No description provided.

yuzifu added 3 commits May 4, 2026 14:01
Add a stateful terminal log sanitizer for txt/html session logs so saved output handles backspace, carriage-return overwrites, erase controls, split CSI/OSC sequences, and ANSI styling without leaking terminal control bytes.

Stream txt/html logs through a persistent renderer and write rendered snapshots directly to the final file, avoiding raw temp files and redundant full rewrites.
Preserve prior log history across clear-screen transitions while coalescing TUI repaint loops to avoid stale frame growth.

  Add regression coverage for tmux/zellij-style clears, repeated ED2/ED3 clears, home-clear repaint loops, and shell clear behavior.
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6bfd0e17a2

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread electron/bridges/terminalLogSanitizer.cjs
@binaricat binaricat merged commit 64e7719 into binaricat:main May 6, 2026
9 checks passed
@yuzifu yuzifu deleted the fix-session-log branch May 6, 2026 05:08
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