Skip to content

commands: a call that waits out the person's stroke keeps its author - #48

Merged
foxnne merged 1 commit into
mainfrom
commands/waiting-author
Oct 17, 2026
Merged

foxnne merged 1 commit into
mainfrom
commands/waiting-author

Conversation

@foxnne

@foxnne foxnne commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

Pixi's part of plans/SHARED_HISTORY_PLAN.md step 2 (fizzyedit/fizzy#474, fizzyedit/fizzy#475): a waiting call keeps its author.

pixi.draw, pixi.stamp and pixi.transformSelection wait out the person's stroke or open transform (afterPerson) and run once a frame after it ends (runWaiting). Until now they ran with nobody acting, so the steps they made were unattributed, and an agent's draw that happened to arrive mid-stroke wouldn't read as the agent's.

  • File.Waiting stores acting: sdk.Host.Acting, taken with host.acted() when the call is put off.
  • runWaiting runs each call inside host.actAgain(w.acting) / host.endAct: the same author, in the same run (one MCP call of the agent's), as if it had never waited.

Already on 0.2.29 (the repin, #47).

Verified: zig build (sandbox FIZZY_PROFILE), zig build test, zig fmt --check. Not exercised live: it needs an agent's draw to land during a stroke of the person's in a 0.2.29 fizzy.

🤖 Generated with Claude Code

A command that arrives during the person's stroke or transform waits
(`afterPerson`) and runs when it ends (`runWaiting`). It now stores who
called it (`Host.acted`) and runs inside `Host.actAgain` with that, so an
agent's waiting draw records its steps as the agent's, in the agent's run,
not as nobody's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@foxnne
foxnne merged commit f3f845d into main Oct 17, 2026
6 checks passed
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