Skip to content

Scout box in New plan, no flicker in Simple mode, and the theme on a Mac - #138

Merged
xmagit merged 4 commits into
mainfrom
fixes-035
Nov 27, 2026
Merged

xmagit merged 4 commits into
mainfrom
fixes-035

Conversation

@xmagit

@xmagit xmagit commented Nov 27, 2026 •

Copy link
Copy Markdown
Owner

Fixes from 0.3.4 use.

Scout box in New plan. New plan has a Scout beside the builders box, ticked as [plan] scout says. The board keeps what the box says, over [plan] scout (Plan::scout_wanted now reads the board's own switch first). A choice that differs from [plan] scout goes to the chief in the plan's first message. The host publishes HostInfo.plan_scout only where start_plan takes scout and agents can message each other; without it, a client shows no box. atomics_plan_set {scout} is unchanged.

No frame at a stale height (the textarea and the chief column flickered):

  • The composer is laid out for its text before the frame's keys. A new line, a wrap or a paste showed one frame at the old height, scrolled inside the box, and the next frame the box grown. Now egui lays that frame out again before showing it (request_discard), and the same goes for the frame that sends a message.
  • egui moves a scroll held at its bottom only after painting the content at the last frame's offset. Whenever the chief's text or its working lines changed height, the conversation was drawn off by that much for a frame, then jumped. The transcript now settles before it is shown (settle_at_bottom).
  • New plan is centred on last frame's size, so each new line drew it off centre for a frame. It is laid out again when its size changes.

Theme on a Mac. A Mac's window is a client of the host in its VM, which has no desktop. Every Host command from a remote window needs the paired device's Host grant (granted only on the host desktop) or a confirmation there. A theme pick was a Host command, so on a Mac, Settings could never change the theme. A headless host now offers theme_pick: a controller that negotiates it picks and pins the theme with its session grant, and the host applies it without a desktop. A theme is only how the windows look; every other Host command still needs the desktop. Settings says "View only but for the theme" there.

Tests: a_conversation_held_at_its_bottom_moves_with_its_content_in_the_frame_it_changes (fails without the settle), the_composer_takes_its_new_height_in_the_frame_of_the_key, new_plans_scout_box_is_the_boards_own_switch_and_the_chief_hears_a_choice_that_differs, a_window_of_a_host_with_no_desktop_picks_the_theme_and_takes_it (a client window on a headless host picks paper, midnight, paper and pins it, its palette and egui's style following each time, while other settings stay refused), and the scout rules in atomics-core. Checked off-screen: the box shows ticked, unticking it saves scout: false on the board, and New plan stays centred as its prompt grows.

🤖 Generated with Claude Code

xmagit and others added 4 commits November 27, 2026 09:38
- New plan has a "Scout beside the builders" box, ticked as the host's
  [plan] scout says. The board keeps what it says, over [plan] scout, and
  the chief hears a choice that differs in the plan's first message. The
  host publishes HostInfo.plan_scout; without it a client shows no box.
- The composer was laid out for its text before the frame's keys: a new
  line, a wrap or a paste showed one frame at the old height, scrolled in
  the box. That frame is now laid out again before it is shown, and so is
  the one that sends a message.
- egui moves a scroll held at its bottom only after painting: whenever the
  chief's text or its working lines changed height, the column was drawn
  off by that much for a frame, then jumped. The transcript now settles
  before it is shown.
- New plan was centred on last frame's size, so each new line drew it off
  centre for a frame. It is laid out again when its size changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The host in a Mac's VM has no desktop, and every Host command from a
remote window needs either the paired device's Host grant (granted only
on the host desktop) or a confirmation there. A theme pick was a Host
command, so on a Mac Settings could never change the theme.

A headless host now offers theme_pick: a controller that negotiates it
picks and pins the theme with its session grant, and the host applies it
without a desktop. A theme is only how the windows look. Other Host
commands are unchanged, and Settings says it is view-only but for the
theme.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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