Repository navigation
fix: log ControlServer through os.Logger and drop the dead RENDER path - #442
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes two entries from
docs/backlog/.ControlServer logging.
ControlServer.logwasNSLog, carrying neither thecom.umputun.agtermsubsystem nor a category, whiledocs/troubleshooting.mdtold users to filter oncategory == "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 throughos.Loggerat notice level withprivacy: .public, since a redacted path or errno says nothing about why the socket is missing. The parameter loses@autoclosureon the way:Loggerinterpolation is escaping and cannot capture it, and the message was evaluated on every call anyway.The documented category list also omitted
GhosttySurfaceView,WatermarkRendererandSettingsView. 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.zigdeclares nomust_draw_from_app_thread, sorenderer/Thread.drawFramedraws on the render thread instead of postingredraw_surface, the only producer of that action. Instrumenting the arm through a full session produced zero callbacks while the panes painted normally.renderNowand its switch arm are deleted and the "surfaces draw on RENDER" account inCLAUDE.mdis corrected..claude/rules/libghostty.mdrecords what would make the action reachable again, since advancingGHOSTTY_REVonto 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_occlusionis 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 carriedguard uiActionsEnabledsince ca817a2, whose three terms arePaletteContext.modalActive's, so both dispatch paths already no-op behind a cover. Thetoggle_fullscreenhalf of that item stands.swift test,make test-appandmake lintpass.