Title: [Bug] squad watch triage fails silently — wrong label slug + missing label pre-creation · Issue #784 · github/squad · GitHub
Open Graph Title: [Bug] squad watch triage fails silently — wrong label slug + missing label pre-creation · Issue #784 · github/squad
X Title: [Bug] squad watch triage fails silently — wrong label slug + missing label pre-creation · Issue #784 · github/squad
Description: Bug: squad watch triage fails silently — wrong label slug + missing label pre-creation Symptoms squad watch shows 🔴 Untriaged: 1 but never assigns a squad:{member} label Issue stays untriaged forever across rounds In-session "Ralph, go" ...
Open Graph Description: Bug: squad watch triage fails silently — wrong label slug + missing label pre-creation Symptoms squad watch shows 🔴 Untriaged: 1 but never assigns a squad:{member} label Issue stays untriaged forev...
X Description: Bug: squad watch triage fails silently — wrong label slug + missing label pre-creation Symptoms squad watch shows 🔴 Untriaged: 1 but never assigns a squad:{member} label Issue stays untriaged forev...
Opengraph URL: https://github.com/github/squad/issues/784
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug] squad watch triage fails silently — wrong label slug + missing label pre-creation","articleBody":"## Bug: `squad watch` triage fails silently — wrong label slug + missing label pre-creation\n\n### Symptoms\n- `squad watch` shows `🔴 Untriaged: 1` but never assigns a `squad:{member}` label\n- Issue stays untriaged forever across rounds\n- In-session \"Ralph, go\" works fine for the same issue\n\n### Root Cause (reproduced with test repo)\n\n**Bug 1 — Wrong label slug.** Watch triage derives the label from the agent's **display name** in team.md (e.g., \"Steve Rogers\" → `squad:steve rogers`) instead of the agent's **directory slug** (e.g., `steve-rogers` → `squad:steve-rogers`).\n\n**Bug 2 — No label pre-creation.** `gh issue edit --add-label \"squad:steve-rogers\"` requires the label to already exist in the GitHub repo. If it doesn't exist, `gh` returns exit code 1 with error `'squad:steve-rogers' not found`. Watch swallows this error and the issue stays untriaged.\n\n### Reproduction\n\n```bash\n# Create a squad with multi-word agent names (e.g., Marvel universe)\n# team.md has: Steve Rogers, Tony Stark, Natasha Romanoff\n# .squad/agents/ has: steve-rogers/, tony-stark/, natasha-romanoff/\n\n# Create issue with squad label\ngh issue create --title \"Test\" --label squad\n\n# Run watch\nsquad watch --interval 1\n\n# Watch shows Untriaged: 1 but never assigns\n# Because it tries: gh issue edit --add-label \"squad:steve rogers\"\n# Which fails: label doesn't exist + wrong slug format\n```\n\n### Expected Behavior\n\n1. Watch should derive label slugs from **agent directory names** (`.squad/agents/{slug}/`), not display names\n2. Watch should **pre-create** missing `squad:{member}` labels on startup or before first assignment\n3. Triage errors should be **surfaced** (at minimum in `--verbose` mode), not swallowed\n\n### Affected Code\n- `packages/squad-sdk/src/ralph/triage.ts` — label slug derivation\n- `packages/squad-cli/src/cli/commands/watch/index.ts` — triage error handling\n\n### Workaround\nManually create labels before running watch:\n```bash\ngh label create \"squad:steve-rogers\" --color d4c5f9\ngh label create \"squad:tony-stark\" --color d4c5f9\n# etc.\n```\n\n### Related\n- #781 (--verbose flag would surface these errors)\n- #782 (PR adding --verbose)","author":{"url":"https://github.com/tamirdresher","@type":"Person","name":"tamirdresher"},"datePublished":"2026-04-03T15:59:09Z","url":"https://github.com/github/squad/issues/784"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:063ac49a-de42-0d39-3dff-a88327e7e343 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E186:269AD9:204B353:2B1D66A:6B017F19 |
| html-safe-nonce | 4a4e322297fef6d1873fe4660fc843a95c1eb988a9ad13bea260a8e81ef1ad28 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMTg2OjI2OUFEOToyMDRCMzUzOjJCMUQ2NkE6NkIwMTdGMTkiLCJ2aXNpdG9yX2lkIjoiNDg4NDMwMDI2ODk0ODI1ODU4NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9b8fa21fd2253bcf2e417cfec8a4f6321951ce878f9234eba3ff3ee6da3e4912 |
| hovercard-subject-tag | issue:4201162871 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/squad/784/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4a5ea22d8375b2f8b2b1b7879166a06c69660e3b1099869261504844d62a65f2/github/squad/issues/784 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4a5ea22d8375b2f8b2b1b7879166a06c69660e3b1099869261504844d62a65f2/github/squad/issues/784 |
| og:image:alt | Bug: squad watch triage fails silently — wrong label slug + missing label pre-creation Symptoms squad watch shows 🔴 Untriaged: 1 but never assigns a squad:{member} label Issue stays untriaged forev... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tamirdresher |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/github/squad git https://github.com/github/squad.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 1151205052 |
| octolytics-dimension-repository_nwo | github/squad |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1151205052 |
| octolytics-dimension-repository_network_root_nwo | github/squad |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width