Skip to content

Conversation

@forketyfork
Copy link
Owner

Solution

  • Clear SessionState.dirty after a successful full render so full-screen sessions can enter idle throttling like cached grid renders, reducing unnecessary redraws.
  • Document the dirty-flag lifecycle in the architecture overview so future render changes keep idle behavior consistent.

Issue: Flickery TUI apps in Architect; full-screen sessions keep dirty set so idle throttling never engages.

Solution: Clear SessionState.dirty after a successful full render to match cached grid behavior.\nDocument the dirty-flag lifecycle so future render changes keep idle throttling intact.
Copy link

@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: f6028ed40c

ℹ️ 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".

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

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@forketyfork forketyfork requested a review from Copilot January 19, 2026 12:26
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR ensures that full-screen session renders can properly enter idle throttling by clearing the dirty flag after successful rendering, matching the behavior already present for cached grid renders.

Changes:

  • Clear SessionState.dirty flag after successful full render in renderSession
  • Document the dirty-flag lifecycle in the architecture overview

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/render/renderer.zig Added session.dirty = false; after rendering session content and overlays
docs/architecture.md Added documentation explaining when SessionState.dirty is set and cleared

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Refs: PR#143 comment 2704562395

Solution: mark the focused session dirty when a collapse completes so the grid cache updates before idle throttling resumes.
@forketyfork forketyfork merged commit e0fb2ba into main Jan 19, 2026
4 checks passed
@forketyfork forketyfork deleted the fix/clear-dirty-full-render branch January 19, 2026 12:36
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