Title: refactor: consolidate duplicated buildAgentCommand and spawnWithTimeout across watch capabilities · Issue #994 · github/squad · GitHub
Open Graph Title: refactor: consolidate duplicated buildAgentCommand and spawnWithTimeout across watch capabilities · Issue #994 · github/squad
X Title: refactor: consolidate duplicated buildAgentCommand and spawnWithTimeout across watch capabilities · Issue #994 · github/squad
Description: Context PR #988 fixed the --message flag across 8 files, but the underlying pattern (same command-building logic copy-pasted everywhere) is still there. Flagged by @diberry in her review. What Extract a shared buildAgentCommand() into a ...
Open Graph Description: Context PR #988 fixed the --message flag across 8 files, but the underlying pattern (same command-building logic copy-pasted everywhere) is still there. Flagged by @diberry in her review. What Extr...
X Description: Context PR #988 fixed the --message flag across 8 files, but the underlying pattern (same command-building logic copy-pasted everywhere) is still there. Flagged by @diberry in her review. What Extr...
Opengraph URL: https://github.com/github/squad/issues/994
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"refactor: consolidate duplicated buildAgentCommand and spawnWithTimeout across watch capabilities","articleBody":"## Context\nPR #988 fixed the --message flag across 8 files, but the underlying pattern (same command-building logic copy-pasted everywhere) is still there. Flagged by @diberry in her review.\n\n## What\n1. Extract a shared buildAgentCommand() into a single location (e.g., watch/utils.ts)\n2. Consolidate spawnWithTimeout() which appears in 4 places with identical implementation\n3. Update docs/comments that still reference gh copilot (code now calls copilot directly)\n\n## Why\nPrevents this class of bug from recurring. Next time the Copilot CLI changes a flag, it is one file to update instead of 8.\n\nFollow-up from PR #988. Credit: @diberry review.","author":{"url":"https://github.com/tamirdresher","@type":"Person","name":"tamirdresher"},"datePublished":"2026-04-17T16:28:06Z","url":"https://github.com/github/squad/issues/994"}
| 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:20a9517e-a3fd-35f4-71c7-17e04d7c091c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A02A:6DC60:19FF7BF:20B9B9A:6B017FA4 |
| html-safe-nonce | 30e97d717713fc1eb80dc4f185f390f44ec834d561c69a1d9aa713c163e6d628 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMDJBOjZEQzYwOjE5RkY3QkY6MjBCOUI5QTo2QjAxN0ZBNCIsInZpc2l0b3JfaWQiOiI4MjUzMjEwNjM0MjM1MDgzODgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b7d3e89c4d704a045ee70f652d117dc0fa4605aa5ff87d1ed495e53620172268 |
| hovercard-subject-tag | issue:4283994151 |
| 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/994/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9c3457219da7fa576bef18c00087ac5301c5ef604fa8c8673093f401838dde9c/github/squad/issues/994 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9c3457219da7fa576bef18c00087ac5301c5ef604fa8c8673093f401838dde9c/github/squad/issues/994 |
| og:image:alt | Context PR #988 fixed the --message flag across 8 files, but the underlying pattern (same command-building logic copy-pasted everywhere) is still there. Flagged by @diberry in her review. What Extr... |
| 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