Skip to content

bl apps: say community sharing is off on workstations without it - #52

Merged
nathan-thillairajah merged 3 commits into
mainfrom
markS/bb-block-community-refusal
Nov 17, 2026
Merged

nathan-thillairajah merged 3 commits into
mainfrom
markS/bb-block-community-refusal

Conversation

@nathan-thillairajah

@nathan-thillairajah nathan-thillairajah commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Workstations only share apps with Buzz communities when the operator sets BL_APPS_COMMUNITY_SHARING=enabled. Some installations deliberately leave it unset: when an app's workspace already covers the whole organization, workspace visibility is how you share there.

On a workstation without the opt-in, bl apps community grant and revoke already stopped with community_sharing_unavailable_through_proxy, but they pointed the owner to Share & manage, which can't share with communities there either. bl apps community list was worse. It fell back to a local login the workstation never has and returned auth_required or org_required. Agents read that as a login problem and kept trying workarounds, until the user ended up asking for an administrator's grant.

What changes

  • On an Apps workstation without the opt-in, community list refuses before it makes any request, with the same code that grant and revoke use.
  • The refusal no longer mentions Share & manage. For grant and list, it names bl apps visibility APP_ID workspace as the next step. For revoke, it only says community sharing isn't available, because widening access is the opposite of what a revoke asks for.
  • Workstations that opt in, and laptops, behave as before.

Tests: a new test covers the list refusal (for unset and non-enabled values), and one test that checks the visibility next step, with and without a known portal, replaces the two portal-link refusal tests. just lint and just test pass.

🤖 Generated with Claude Code

On a Blox workstation that hasn't opted in to community sharing (no
BL_APPS_COMMUNITY_SHARING=enabled), `bl apps community list` fell back
to a local login the workstation never has and reported `auth_required`
or `org_required`. Agents read that as a login problem and went looking
for workarounds, such as the skill's relay fallback, that end in a 403.

`list` now refuses up front with `community_sharing_unavailable_through_proxy`,
the same code grant and revoke already use, and both messages point to
`bl apps visibility APP_ID workspace` as the way to let others open the app.

Co-authored-by: Mark S <f24e6a2707dedca50330ec50ca75720a5691b529f8d8303f51c2feb08d1c906d@remote-agent-pilot.communities.buzz.xyz>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nathan-thillairajah
nathan-thillairajah requested a review from a team as a code owner November 17, 2026 16:24
Where a workstation can't share with communities, Share & manage can't
either, so sending the owner there was another dead end. The refusal from
community list, grant and revoke now names only
`bl apps visibility APP_ID workspace`.

Co-authored-by: Mark S <f24e6a2707dedca50330ec50ca75720a5691b529f8d8303f51c2feb08d1c906d@remote-agent-pilot.communities.buzz.xyz>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Comment thread src/bl/apps.rs Outdated
error.next_action = Some(json!(next_action));
return Err(anyhow::Error::new(error));
// pick another ingress. Workspace visibility is the way to widen access.
return Err(community_sharing_unavailable(app_id));

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 Nit (non-blocking): Could the error advice depend on whether the command is grant or revoke? For revoke, suggesting bl apps visibility APP_ID workspace points toward widening access rather than removing it. Simply saying community sharing is unavailable would fit that use case better. This is minor, since this environment couldn't grant community access in the first place.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 Good catch, fixed in 3590488. A refused revoke now only says community sharing isn't available here, with no next step. grant and list still point at workspace visibility. The test covers both branches.

@jsibbison-square jsibbison-square left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 Approved after static review of eeb2341. No blocking introduced bugs found; the inline wording nit is non-blocking. No project code or tests were executed.

A revoke narrows access, so pointing it at workspace visibility sends the
user the wrong way. Grant and list keep the visibility advice.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@jsibbison-square jsibbison-square left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 Approved after static re-review of 3590488. The earlier wording nit is fixed, and no introduced bugs were found. No project code or tests were executed.

@nathan-thillairajah
nathan-thillairajah merged commit ce51389 into main Nov 17, 2026
4 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.

2 participants