Skip to content

fix(agent): resolve oauth cache home cross-platform - #5151

Merged
kalvinnchau merged 1 commit into
block:mainfrom
kalvinnchau:windows-xp/fix-windows-oauth-home
Aug 7, 2026
Merged

fix(agent): resolve oauth cache home cross-platform#5151
kalvinnchau merged 1 commit into
block:mainfrom
kalvinnchau:windows-xp/fix-windows-oauth-home

Conversation

@kalvinnchau

Copy link
Copy Markdown
Contributor

Summary

  • resolve the OAuth cache home directory with the repository's platform-aware dirs convention
  • preserve the existing .config/buzz-agent/oauth cache layout on macOS and Linux
  • make the cache-path regression assertion portable across path separators

Problem

buzz-agent read only $HOME when constructing the OAuth token cache path. Packaged Windows processes do not guarantee that Unix variable, so OAuth source construction failed with oauth cache: $HOME not set even though Windows had a valid user profile.

Validation

Independent reviewers validated exact commit 836d820483b141b7291170cb33535ac7cb49b2eb on Windows/MSVC with HOME unset and USERPROFILE present:

  • cargo +1.94.1 clippy -p buzz-agent --all-targets --locked -- -D warnings
  • cargo +1.94.1 fmt --all -- --check
  • git diff --check f53bbd1..836d820
  • auth:: tests: 11/11 passed with HOME unset
  • full package lib target: 396 passed / 2 failed; identical-base controls classified both as pre-existing Windows failures

The changed regression fails on the base with $HOME not set and passes on this branch. dirs 6.0.0 was already locked by other workspace crates; the lockfile change adds only the buzz-agent dependency edge.

@kalvinnchau
kalvinnchau requested a review from a team as a code owner August 7, 2026 04:42
Co-authored-by: Kalvin C <kalvinnchau@users.noreply.github.com>
Signed-off-by: Kalvin C <kalvinnchau@users.noreply.github.com>
@kalvinnchau
kalvinnchau force-pushed the windows-xp/fix-windows-oauth-home branch from 836d820 to b3b1528 Compare August 7, 2026 05:22
@kalvinnchau
kalvinnchau merged commit c293b3c into block:main Aug 7, 2026
34 checks passed
41fred pushed a commit to 41fred/buzz that referenced this pull request Aug 9, 2026
## Summary

- resolve the OAuth cache home directory with the repository's
platform-aware `dirs` convention
- preserve the existing `.config/buzz-agent/oauth` cache layout on macOS
and Linux
- make the cache-path regression assertion portable across path
separators

## Problem

`buzz-agent` read only `$HOME` when constructing the OAuth token cache
path. Packaged Windows processes do not guarantee that Unix variable, so
OAuth source construction failed with `oauth cache: $HOME not set` even
though Windows had a valid user profile.

## Validation

Independent reviewers validated exact commit
`836d820483b141b7291170cb33535ac7cb49b2eb` on Windows/MSVC with `HOME`
unset and `USERPROFILE` present:

- `cargo +1.94.1 clippy -p buzz-agent --all-targets --locked -- -D
warnings`
- `cargo +1.94.1 fmt --all -- --check`
- `git diff --check f53bbd1..836d820`
- `auth::` tests: 11/11 passed with `HOME` unset
- full package lib target: 396 passed / 2 failed; identical-base
controls classified both as pre-existing Windows failures

The changed regression fails on the base with `$HOME not set` and passes
on this branch. `dirs 6.0.0` was already locked by other workspace
crates; the lockfile change adds only the `buzz-agent` dependency edge.

Signed-off-by: Kalvin C <kalvinnchau@users.noreply.github.com>
wpfleger96 pushed a commit that referenced this pull request Aug 10, 2026
…gaps

* origin/main: (26 commits)
  fix(sdk): preserve self-mention p tags in message and forum event builders (#4975)
  bump @tauri-apps/cli to ~2.11.4 to fix linux app icon issue (#4858)
  feat(desktop): adding rich link previews to messages (#3818)
  fix(buzz-agent): Responses reasoning summary, Anthropic display:summarized, ACP v2 messageId (#5195)
  fix(desktop): retain distinct agent instances in autocomplete (#5202)
  fix(desktop): defer channel visibility change to Save (#5203)
  feat(desktop): Projects follow-ups — access restrictions, fast loading, activity feed polish (#5073)
  refactor(cli): replace probe/decider/detail split with single typed extractor (#5191)
  fix(desktop): drop unhandled rejection from throwing window.Notification (#5143)
  fix(desktop): fence localStorage SecurityError from killing the React tree (#5142)
  fix(desktop): make terminal output selectable (#4980)
  fix(desktop): use WEBKIT_DMABUF_RENDERER_FORCE_SHM for NVIDIA/AppImage (#3654) (#4505)
  Make public starter channels best effort (#5192)
  Mobile: add anchored reaction popover (#5025)
  feat(mobile): add bee pull-to-refresh (#5059)
  Remove agent creation success modal (#5063)
  fix(buzz-agent): escalate LLM timeouts per retry and log per-call latency (#5130)
  fix(agent): resolve oauth cache home cross-platform (#5151)
  Improve video review readiness and controls (#5161)
  Polish advanced agent setup and Welcome composer (#4926)
  ...

Signed-off-by: Hayt <9e1c23a3fd83f61da34420e4e88ff1b16e45cafcc0cd9019eb07d4ecfa8ca9b0@buzz.block.builderlab.xyz>
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.

2 participants