Log handoff token counts#1954
Merged
Merged
Conversation
Co-authored-by: npub12gtutshhh76rx0jx697f32f9tffd4hhp3hx58fp4x6u4uemkm7sqf8f757 <5217c5c2f7bfb4333e46d17c98a9255a52dadee18dcd43a43536b95e6776dfa0@sprout-oss.stage.blox.sqprod.co> Signed-off-by: npub12gtutshhh76rx0jx697f32f9tffd4hhp3hx58fp4x6u4uemkm7sqf8f757 <5217c5c2f7bfb4333e46d17c98a9255a52dadee18dcd43a43536b95e6776dfa0@sprout-oss.stage.blox.sqprod.co>
1a78216 to
91eaa89
Compare
tlongwell-block
pushed a commit
that referenced
this pull request
Jul 16, 2026
* origin/main: (29 commits) chore(release): release Buzz Mobile version 0.4.5 (#1965) fix(mobile): support open pairing relays (#1939) feat(desktop): refine Projects navigation and overview hierarchy (#1956) Log handoff token counts (#1954) fix(onboarding): add Welcome finalize skip escape hatch (#1960) Welcome channel: Browse channels card, browser sorting, shortcut hint placement (#1948) chore(release): release Buzz Desktop version 0.4.7 (#1955) feat(desktop): confirm invites with an Opening-invite loading gate before machine onboarding (#1950) fix(mobile): replace pairing placeholder with Buzz icon (#1952) feat(desktop): remove theme selection from onboarding, default to Buzz + System (#1947) fix(desktop): sentence-case runtime descriptions in onboarding setup (#1944) feat(desktop): Projects v3 — overview redesign, activity feed, agent access & sync controls (#1851) Rework first-launch community onboarding (#1936) fix(desktop): stop marking users away while active on the machine (#1942) Add pre-push branch-skew guard and changed-spec e2e recipe (#1940) ci: build the relay once and cache it by source hash (#1941) fix(desktop): variant-aware connecting gate for first-run handoffs (#1938) Redesign agent AI configuration and defaults (#1935) Add Buzz-managed Node runtime for agent installs (#1930) feat(desktop): return nostr binding proof in browser fragment (#1933) ... # Conflicts: # desktop/src/features/communities/ui/AddCommunityDialog.tsx # desktop/src/features/communities/ui/WelcomeSetup.tsx # desktop/src/features/onboarding/ui/MembershipDenied.tsx # desktop/src/shared/deep-link.ts # desktop/tests/e2e/onboarding.spec.ts
tlongwell-block
pushed a commit
that referenced
this pull request
Jul 16, 2026
* origin/main: (29 commits) chore(release): release Buzz Mobile version 0.4.5 (#1965) fix(mobile): support open pairing relays (#1939) feat(desktop): refine Projects navigation and overview hierarchy (#1956) Log handoff token counts (#1954) fix(onboarding): add Welcome finalize skip escape hatch (#1960) Welcome channel: Browse channels card, browser sorting, shortcut hint placement (#1948) chore(release): release Buzz Desktop version 0.4.7 (#1955) feat(desktop): confirm invites with an Opening-invite loading gate before machine onboarding (#1950) fix(mobile): replace pairing placeholder with Buzz icon (#1952) feat(desktop): remove theme selection from onboarding, default to Buzz + System (#1947) fix(desktop): sentence-case runtime descriptions in onboarding setup (#1944) feat(desktop): Projects v3 — overview redesign, activity feed, agent access & sync controls (#1851) Rework first-launch community onboarding (#1936) fix(desktop): stop marking users away while active on the machine (#1942) Add pre-push branch-skew guard and changed-spec e2e recipe (#1940) ci: build the relay once and cache it by source hash (#1941) fix(desktop): variant-aware connecting gate for first-run handoffs (#1938) Redesign agent AI configuration and defaults (#1935) Add Buzz-managed Node runtime for agent installs (#1930) feat(desktop): return nostr binding proof in browser fragment (#1933) ... # Conflicts: # desktop/src/features/communities/ui/AddCommunityDialog.tsx # desktop/src/features/communities/ui/WelcomeSetup.tsx # desktop/src/features/onboarding/ui/MembershipDenied.tsx # desktop/src/shared/deep-link.ts # desktop/tests/e2e/onboarding.spec.ts Signed-off-by: npub12gtutshhh76rx0jx697f32f9tffd4hhp3hx58fp4x6u4uemkm7sqf8f757 <5217c5c2f7bfb4333e46d17c98a9255a52dadee18dcd43a43536b95e6776dfa0@sprout-oss.stage.blox.sqprod.co>
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.
Summary
Notes
The post-handoff prompt path is in
crates/buzz-agent/src/handoff.rs:HANDOFF_SYSTEM_PROMPTasks the summarizer to produce a context handoff summary, thenmaybe_handoffinjects[Context Handoff]\n{summary}plus optional[Post-compact hook output — untrusted]into fresh history and re-adds the current user prompt before the next normal completion.Tests
. ./bin/activate-hermit && bin/cargo fmt --check -p buzz-agent. ./bin/activate-hermit && bin/cargo test -p buzz-agent --test regressions handoff -- --nocapture. ./bin/activate-hermit && bin/cargo test -p buzz-agentrust-testsbecause hook used rustc 1.89.0 while sqlx@0.9.0 requires rustc 1.94.0; current Hermit shell reports rustc 1.95.0 and targeted buzz-agent tests pass.