claude-code - 💡(How to fix) Fix [FEATURE] visibility: "team" for routine-created sessions (config-level + /fire override)

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Fix Action

Fix / Workaround

  • Claude in Slack auto-shares sessions with Team visibility, but that entry point does not carry a routine's seed prompt, guardrails, pinned repo, or MCP connector config — so it isn't a substitute for a routine.
  • Manual UI toggle per session (current workaround) — doesn't scale for automated/unattended runs.
  • An org-level default visibility setting (all routine sessions default to Team) would also solve the problem if a per-routine field is too granular.
  1. We define per-repo, guardrailed review/build routines (read-only/comment-only vs. push) and fire them from an internal dispatcher via the /fire API.
  2. Each run creates a Private session under the firing account.
  3. Today, a teammate cannot see the execution unless someone manually opens each session and toggles visibility to Team.
  4. With visibility: "team" on the routine config (or /fire body), every execution would land as Shared with Team automatically — teammates get visibility into what the automation did with zero manual steps.

Code Example

"job_config": { "ccr": { "visibility": "team", /* ...existing fields... */ } }

---

curl -X POST .../routines/$ROUTINE_ID/fire \
     -H "Authorization: Bearer $TOKEN" \
     -H "anthropic-beta: experimental-cc-routine-2026-04-01" \
     -d '{"text": "...", "visibility": "team"}'
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

Sessions created by a routine (Claude Code on the web) always land as Private to the routine owner's account, and there is no programmatic way to make them auto-share with Team visibility.

On a Team/Enterprise plan, the documented options are all manual or out-of-band:

  • The /fire API body only accepts text — per the API reference, "Unknown fields in the body are ignored." So a visibility/shared field sent today is silently dropped.
  • The routine config (docs) has no visibility/sharing field.
  • Session visibility (Private ⇄ Team) is only a manual, post-hoc UI toggle at claude.ai/code, one session at a time.
  • The per-routine bearer token "grants no read access… no access to account data," so a routine cannot self-share via any API as a final step either.

The result: any team running guardrailed review/build routines through the /fire API or a schedule cannot give teammates visibility into executions without a manual click per session.

Proposed Solution

Add a visibility: "private" | "team" option for routine-created sessions, settable at either level:

  1. Routine config (job_config.ccr) — inherited by every run:
    "job_config": { "ccr": { "visibility": "team", /* ...existing fields... */ } }
  2. POST /v1/claude_code/routines/{id}/fire body — as a per-run override:
    curl -X POST .../routines/$ROUTINE_ID/fire \
      -H "Authorization: Bearer $TOKEN" \
      -H "anthropic-beta: experimental-cc-routine-2026-04-01" \
      -d '{"text": "...", "visibility": "team"}'

This reuses the existing Enterprise/Team Private⇄Team model — it just needs to be settable at config/run time instead of only in the UI after the fact.

Alternative Solutions

  • Claude in Slack auto-shares sessions with Team visibility, but that entry point does not carry a routine's seed prompt, guardrails, pinned repo, or MCP connector config — so it isn't a substitute for a routine.
  • Manual UI toggle per session (current workaround) — doesn't scale for automated/unattended runs.
  • An org-level default visibility setting (all routine sessions default to Team) would also solve the problem if a per-routine field is too granular.

Priority

Medium - Would be very helpful

Feature Category

API and model interactions

Use Case Example

  1. We define per-repo, guardrailed review/build routines (read-only/comment-only vs. push) and fire them from an internal dispatcher via the /fire API.
  2. Each run creates a Private session under the firing account.
  3. Today, a teammate cannot see the execution unless someone manually opens each session and toggles visibility to Team.
  4. With visibility: "team" on the routine config (or /fire body), every execution would land as Shared with Team automatically — teammates get visibility into what the automation did with zero manual steps.

Additional Context

Related issues (none cover routine / API-triggered auto-share):

  • #40981 — Share CC sessions with team (closed as duplicate; manual sharing only)
  • #27702 — Live shareable session view (closed as not planned; opt-in live view)
  • #18230 — Multi-developer shared sessions (real-time co-editing, not a visibility default)

Doc references:

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING