Repository navigation
feat(link): publish the shell on the machine, not only on a session - #108
Merged
Merged
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Cloud stops a session an hour after its last activity, so a linked machine vanished from Tabs while its shell was live. The link now states its url on the machine's own run-target through the heartbeat it already keeps, and withdraws it, waiting to be heard, when the link ends. The session row still carries the url for Tabs that predate the machine field. Depends on hanzo-gen cb406b1 (feat/machine-terminal): Cargo.toml still pins the old rev, so this commit does not compile in CI until the pin is bumped to the merged gen commit. `target::sync` now takes a `Register`. Testing: cargo test --bin hanzo link:: (44 pass) and cargo clippy --all-targets -- -D warnings, both with a local path override of hanzo-gen that is not committed. Risk: none until the gen pin moves; a cloud without the machine field ignores `terminal`. How to revert: git revert this commit.
The link's machine terminal needs Beat::terminal and Beat::withdraw from hanzoai/gen#19. Pinned to that PR's head so this builds now; re-pin to the merged commit when #19 lands. Testing: cargo test --bin hanzo link:: built against the pinned gen (Compiling hanzo-gen ...#cb406b1d), 44 passed; cargo clippy --all-targets -- -D warnings clean. Risk: low; the pin moves gen forward two commits, both in target.rs. How to revert: git revert this commit (and the link commit with it).
Member
|
Rebased onto
|
zeekay
force-pushed
the
feat/machine-terminal
branch
from
November 27, 2026 04:01
febc996 to
64858c4
Compare
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.
Why
A laptop running
hanzo linkvanished from Hanzo Tabs about an hour after the link started, while its shell was still live. The link published its terminal only on an agent session, and cloud's reaper rightly stops a session with no activity for an hour. The link never learns that it happened.What
on_machine(machine, url, held), usingBeat::terminalfrom feat(target): a beat states the machine's terminal, so a live link stays visible gen#19.Beat::withdraw) before dropping the beat, so Tabs stops showing a shell that's gone.link/folders.rsfollows gen'starget::syncsignature change.Depends on
cb406b1. Re-pin to the merged commit when it lands.terminal. A cloud without it ignores the field, so this is safe to ship in any order.Testing
cargo test --bin hanzo link::against the pinned gen: 44 passed.cargo clippy --all-targets -- -D warningsis clean.while_serving_the_machines_beat_carries_the_terminal. It was written withon_machine, so it was not seen failing first.Risk
Low. One more field on the link's heartbeat.
How to revert
Revert the two commits.