Title: gh stack sync --prune for a completed stack deletes the branch but leaves stack in gh stack checkout metadata · Issue #137 · github/gh-stack · GitHub
Open Graph Title: gh stack sync --prune for a completed stack deletes the branch but leaves stack in gh stack checkout metadata · Issue #137 · github/gh-stack
X Title: gh stack sync --prune for a completed stack deletes the branch but leaves stack in gh stack checkout metadata · Issue #137 · github/gh-stack
Description: gh stack sync --prune for a completed stack deletes the branch but leaves stack in gh stack checkout metadata. Repro steps: Create a stack with 1 branch. Submit PR Complete PR Run gh stack sync --prune Branch is synced and deleted Run gh...
Open Graph Description: gh stack sync --prune for a completed stack deletes the branch but leaves stack in gh stack checkout metadata. Repro steps: Create a stack with 1 branch. Submit PR Complete PR Run gh stack sync --p...
X Description: gh stack sync --prune for a completed stack deletes the branch but leaves stack in gh stack checkout metadata. Repro steps: Create a stack with 1 branch. Submit PR Complete PR Run gh stack sync --p...
Opengraph URL: https://github.com/github/gh-stack/issues/137
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"gh stack sync --prune for a completed stack deletes the branch but leaves stack in gh stack checkout metadata","articleBody":"gh stack sync --prune for a completed stack deletes the branch but leaves stack in gh stack checkout metadata.\n\nRepro steps:\n1. Create a stack with 1 branch.\n2. Submit PR\n3. Complete PR\n4. Run gh stack sync --prune\n5. Branch is synced and deleted\n6. Run `gh stack checkout`\n7. Observe\n\nExpected: Stack should be deleted\nActual: Stack is not deleted, and cannot be selected because the branch no longer exists.\nWorkaround: Create a branch with the same name as one that doesn't exist. Run `gh stack untrack`, delete branch.","author":{"url":"https://github.com/rwedoff","@type":"Person","name":"rwedoff"},"datePublished":"2026-06-17T22:35:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/137/gh-stack/issues/137"}
| 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:b8df5f5c-bde9-758c-dd97-7d9a1084c812 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9EB4:3EE845:66C31AC:900005B:6A4FBA8D |
| html-safe-nonce | 5ead2eeabe147c3910bdce91a61eeacce0abb7ea3277c01c9b089ffa1f255127 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RUI0OjNFRTg0NTo2NkMzMUFDOjkwMDAwNUI6NkE0RkJBOEQiLCJ2aXNpdG9yX2lkIjoiNjY4NzI4ODA1NjE2MzA1NjI2OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8d13796669766f3cbc01e86e8a5de47c79f5926f5714d127d3a372a57ad0b079 |
| hovercard-subject-tag | issue:4687544578 |
| 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/gh-stack/137/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9230a751d4a87ed329c7227e7fc77ce99520174484e4eea6609f4190672e67a6/github/gh-stack/issues/137 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9230a751d4a87ed329c7227e7fc77ce99520174484e4eea6609f4190672e67a6/github/gh-stack/issues/137 |
| og:image:alt | gh stack sync --prune for a completed stack deletes the branch but leaves stack in gh stack checkout metadata. Repro steps: Create a stack with 1 branch. Submit PR Complete PR Run gh stack sync --p... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rwedoff |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| turbo-cache-control | no-preview |
| go-import | github.com/github/gh-stack git https://github.com/github/gh-stack.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 1151630728 |
| octolytics-dimension-repository_nwo | github/gh-stack |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1151630728 |
| octolytics-dimension-repository_network_root_nwo | github/gh-stack |
| 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 | 4b249b445842943ed31549e027f57a8ade9881ed |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width