Skip to content

fix: log ControlServer through os.Logger and drop the dead RENDER path - #442

Merged
umputun merged 3 commits into
masterfrom
backlog-fixes
Aug 16, 2026
Merged

umputun merged 3 commits into
masterfrom
backlog-fixes

Conversation

@umputun

@umputun umputun commented Aug 16, 2026

Copy link
Copy Markdown
Owner

closes two entries from docs/backlog/.

ControlServer logging. ControlServer.log was NSLog, carrying neither the com.umputun.agterm subsystem nor a category, while docs/troubleshooting.md told users to filter on category == "ControlServer". That left the control socket, the most likely reason to open that page, as the one area with no queryable output. It now goes through os.Logger at notice level with privacy: .public, since a redacted path or errno says nothing about why the socket is missing. The parameter loses @autoclosure on the way: Logger interpolation is escaping and cannot capture it, and the message was evaluated on every call anyway.

The documented category list also omitted GhosttySurfaceView, WatermarkRenderer and SettingsView. All eight are now named, in the page and in the bundled skill.

The dead RENDER path. The embedded apprt cannot emit GHOSTTY_ACTION_RENDER: src/apprt/embedded.zig declares no must_draw_from_app_thread, so renderer/Thread.drawFrame draws on the render thread instead of posting redraw_surface, the only producer of that action. Instrumenting the arm through a full session produced zero callbacks while the panes painted normally.

renderNow and its switch arm are deleted and the "surfaces draw on RENDER" account in CLAUDE.md is corrected. .claude/rules/libghostty.md records what would make the action reachable again, since advancing GHOSTTY_REV onto a libghostty declaring that constant would otherwise stop panes painting with nothing to point at.

The occlusion half of that item, hidden panes redrawing because ghostty_surface_set_occlusion is never called, stays open as its own backlog entry.

The third commit withdraws a wrong paragraph from toggle-fullscreen-menu-chord-bypasses-the-modal-gate.md. AppActions.undoClose() has carried guard uiActionsEnabled since ca817a2, whose three terms are PaletteContext.modalActive's, so both dispatch paths already no-op behind a cover. The toggle_fullscreen half of that item stands.

swift test, make test-app and make lint pass.

ControlServer.log was NSLog, carrying neither the com.umputun.agterm subsystem
nor a category, while docs/troubleshooting.md told users to filter on
category == "ControlServer". That left the control socket, the most likely
reason to open that page, as the one area with no queryable output.

The parameter loses @autoclosure: Logger interpolation is escaping and cannot
capture it, and the message was evaluated on every call anyway.

The documented category list also omitted GhosttySurfaceView, WatermarkRenderer
and SettingsView. All eight are now named, here and in the bundled skill.
The embedded apprt cannot emit RENDER. src/apprt/embedded.zig declares no
must_draw_from_app_thread, so renderer/Thread.drawFrame draws on the render
thread instead of posting redraw_surface, the only producer of that action.
Instrumenting the arm through a full session produced zero callbacks while the
panes painted normally.

renderNow and its arm are deleted and the "surfaces draw on RENDER" account in
CLAUDE.md is corrected. The rules file records what would make the action
reachable again, since advancing GHOSTTY_REV onto a libghostty declaring that
constant would otherwise stop panes painting with nothing to point at.

The item's other half, hidden panes drawing because occlusion is never
reported, stays open as its own backlog entry.
AppActions.undoClose() has carried `guard uiActionsEnabled` since ca817a2, whose
three terms are PaletteContext.modalActive's, so both dispatch paths already
no-op behind a cover. The toggle_fullscreen half stands: it calls
keyWindow.toggleFullScreen(nil) rather than an AppActions method carrying the gate.
Copilot AI lite review requested due to automatic review settings August 16, 2026 09:05

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@umputun
umputun merged commit b2351ca into master Aug 16, 2026
7 checks passed
@umputun
umputun deleted the backlog-fixes branch August 16, 2026 09:10
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