Repository navigation
bl apps: say community sharing is off on workstations without it - #52
Conversation
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>
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>
| 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)); |
There was a problem hiding this comment.
🤖 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.
There was a problem hiding this comment.
🤖 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
left a comment
There was a problem hiding this comment.
🤖 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
left a comment
There was a problem hiding this comment.
🤖 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.
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,workspacevisibility is how you share there.On a workstation without the opt-in,
bl apps community grantandrevokealready stopped withcommunity_sharing_unavailable_through_proxy, but they pointed the owner to Share & manage, which can't share with communities there either.bl apps community listwas worse. It fell back to a local login the workstation never has and returnedauth_requiredororg_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
community listrefuses before it makes any request, with the same code that grant and revoke use.grantandlist, it namesbl apps visibility APP_ID workspaceas the next step. Forrevoke, it only says community sharing isn't available, because widening access is the opposite of what a revoke asks for.Tests: a new test covers the list refusal (for unset and non-
enabledvalues), and one test that checks the visibility next step, with and without a known portal, replaces the two portal-link refusal tests.just lintandjust testpass.🤖 Generated with Claude Code