René's URL Explorer Experiment


Title: Squad state destroyed when .squad/ is gitignored and agents switch branches · Issue #643 · github/squad · GitHub

Open Graph Title: Squad state destroyed when .squad/ is gitignored and agents switch branches · Issue #643 · github/squad

X Title: Squad state destroyed when .squad/ is gitignored and agents switch branches · Issue #643 · github/squad

Description: Problem When .squad/ is in .gitignore (common when using Squad in a repo you do not own), agent-triggered git checkout commands silently destroy all Squad state files (dashboards, agent history, decisions, orchestration logs). Root Cause...

Open Graph Description: Problem When .squad/ is in .gitignore (common when using Squad in a repo you do not own), agent-triggered git checkout commands silently destroy all Squad state files (dashboards, agent history, de...

X Description: Problem When .squad/ is in .gitignore (common when using Squad in a repo you do not own), agent-triggered git checkout commands silently destroy all Squad state files (dashboards, agent history, de...

Opengraph URL: https://github.com/github/squad/issues/643

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Squad state destroyed when .squad/ is gitignored and agents switch branches","articleBody":"## Problem\n\nWhen `.squad/` is in `.gitignore` (common when using Squad in a repo you do not own), agent-triggered `git checkout` commands silently destroy all Squad state files (dashboards, agent history, decisions, orchestration logs).\n\n### Root Cause\n\n`.squad/` files are untracked. Git does not preserve untracked files during branch switches. Agents that run `git checkout \u003cbranch>` in the main worktree — instead of `git worktree add` — cause the deletion.\n\n### How We Hit This\n\nWe used Squad to triage a 78-issue backlog in `Azure/azure-cli`. Since we cannot commit `.squad/` to that repo, we gitignored it. During live validation, an agent ran `git checkout fix/ssl-branch` in the main worktree. All `.squad/` files were wiped — dashboards, agent charters, history, logs. This happened **twice** in one session.\n\n### Suggested Improvements\n\n1. **Detect gitignored `.squad/` at init** — If `.squad/` matches a `.gitignore` rule, warn the user: *\"⚠️ .squad/ is gitignored. State will not survive branch switches. Consider using `--external-state` or committing .squad/.\"*\n\n2. **Enforce worktree usage in agent prompts** — The coordinator already instructs agents to use `git worktree add`, but there is no enforcement. Consider adding a pre-flight check or a git hook that prevents `git checkout` when `.squad/` is untracked.\n\n3. **Support external state directory** — For \"contributor\" scenarios (using Squad in repos you do not own), allow `.squad/` state to live outside the repo, e.g. `~/.squad/projects/\u003crepo-name>/`. This would be immune to checkout/worktree issues.\n\n4. **Auto-backup before risky git ops** — Before any branch switch, snapshot `.squad/` to a temp location. Restore if files are missing after the operation.\n\n### Environment\n\n- Squad v0.9.1\n- Copilot CLI\n- macOS, Azure/azure-cli repo\n- `.squad/` in `.gitignore`","author":{"url":"https://github.com/seligj95","@type":"Person","name":"seligj95"},"datePublished":"2026-03-26T20:10:19Z","url":"https://github.com/github/squad/issues/643"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:78f5e499-1450-067b-0c8a-f3a437d58dbd
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD620:2679E9:18E819E:212CF2A:6B01506B
html-safe-nonce27e7259611fed622a1cb4e344d2378339f504815fe5024f00a0e9548479ad707
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjIwOjI2NzlFOToxOEU4MTlFOjIxMkNGMkE6NkIwMTUwNkIiLCJ2aXNpdG9yX2lkIjoiMTk0NzkyMzMyODczNTk4OTg2NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacdd93b7a9bc9b29a4efa885386a541d5974f867918bb450e0e68754f5fc1d1b06
hovercard-subject-tagissue:4147033545
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/squad/643/issue_layout
twitter:imagehttps://opengraph.githubassets.com/1b8db99bce9370387bd020dc02bea0688841e4337f2eee7fd5d847171ef8342d/github/squad/issues/643
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1b8db99bce9370387bd020dc02bea0688841e4337f2eee7fd5d847171ef8342d/github/squad/issues/643
og:image:altProblem When .squad/ is in .gitignore (common when using Squad in a repo you do not own), agent-triggered git checkout commands silently destroy all Squad state files (dashboards, agent history, de...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameseligj95
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/github/squad git https://github.com/github/squad.git
octolytics-dimension-user_id9919
octolytics-dimension-user_logingithub
octolytics-dimension-repository_id1151205052
octolytics-dimension-repository_nwogithub/squad
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1151205052
octolytics-dimension-repository_network_root_nwogithub/squad
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/github/squad/issues/643#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fsquad%2Fissues%2F643
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fsquad%2Fissues%2F643
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=github%2Fsquad
Reloadhttps://github.com/github/squad/issues/643
Reloadhttps://github.com/github/squad/issues/643
Reloadhttps://github.com/github/squad/issues/643
githubhttps://github.com/github
squadhttps://github.com/github/squad
Codehttps://github.com/github/squad
Issues108 (108)https://github.com/github/squad/issues
Pull requests26 (26)https://github.com/github/squad/pulls
Discussionshttps://github.com/github/squad/discussions
Actionshttps://github.com/github/squad/actions
Projectshttps://github.com/github/squad/projects
Security and qualityhttps://github.com/github/squad/security
Insightshttps://github.com/github/squad/insights
https://github.com/github/squad
New issuehttps://github.com/login?return_to=https://github.com/github/squad/issues/643
New issuehttps://github.com/login?return_to=https://github.com/github/squad/issues/643
Squad state destroyed when .squad/ is gitignored and agents switch brancheshttps://github.com/github/squad/issues/643#top
bugSomething isn't workinghttps://github.com/github/squad/issues?q=state%3Aopen%20label%3A%22bug%22
go:needs-researchNeeds investigationhttps://github.com/github/squad/issues?q=state%3Aopen%20label%3A%22go%3Aneeds-research%22
squadSquad triage inbox — Lead will assign to a memberhttps://github.com/github/squad/issues?q=state%3Aopen%20label%3A%22squad%22
https://github.com/seligj95
seligj95https://github.com/seligj95
on Mar 26, 2026https://github.com/github/squad/issues/643#issue-4147033545
bradygasterhttps://github.com/bradygaster
squadSquad triage inbox — Lead will assign to a memberhttps://github.com/github/squad/issues?q=state%3Aopen%20label%3A%22squad%22
squad:eecomhttps://github.com/github/squad/issues?q=state%3Aopen%20label%3A%22squad%3Aeecom%22
squad:fidohttps://github.com/github/squad/issues?q=state%3Aopen%20label%3A%22squad%3Afido%22
bugSomething isn't workinghttps://github.com/github/squad/issues?q=state%3Aopen%20label%3A%22bug%22
on Mar 28, 2026https://github.com/github/squad/issues/643#event-23998707012
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Mar 28, 2026https://github.com/github/squad/issues/643#issuecomment-4148122664
GitHub Actionshttps://help.github.com/en/actions
#643https://github.com/github/squad/issues/643
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Mar 28, 2026https://github.com/github/squad/issues/643#issuecomment-4148122667
GitHub Actionshttps://help.github.com/en/actions
#643https://github.com/github/squad/issues/643
github-actionshttps://github.com/apps/github-actions
go:needs-researchNeeds investigationhttps://github.com/github/squad/issues?q=state%3Aopen%20label%3A%22go%3Aneeds-research%22
on Mar 28, 2026https://github.com/github/squad/issues/643#event-23998708163
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Mar 28, 2026https://github.com/github/squad/issues/643#issuecomment-4148122744
GitHub Actionshttps://help.github.com/en/actions
#643https://github.com/github/squad/issues/643
tamirdresherhttps://github.com/tamirdresher
on Mar 29, 2026https://github.com/github/squad/issues/643#event-24009802410
feat(sdk): StateBackend POC — orphan branch state persistence (#678)https://github.com/github/squad/commit/0c292934f0b54305d8a5f2f33488e5052dcb67fd
#678https://github.com/github/squad/issues/678
0c29293https://github.com/github/squad/commit/0c292934f0b54305d8a5f2f33488e5052dcb67fd
fix: address all 5 Copilot review findings + expand to 36 E2E testshttps://github.com/github/squad/commit/ff924996b868c5a0d8368ec2a8a02bcaa16a154c
ff92499https://github.com/github/squad/commit/ff924996b868c5a0d8368ec2a8a02bcaa16a154c
https://github.com/diberry
diberryhttps://github.com/diberry
on Mar 31, 2026https://github.com/github/squad/issues/643#issuecomment-4163815861
#680https://github.com/github/squad/pull/680
#678https://github.com/github/squad/issues/678
#498https://github.com/github/squad/issues/498
#670https://github.com/github/squad/issues/670
https://github.com/jazz127
jazz127https://github.com/jazz127
on Apr 1, 2026https://github.com/github/squad/issues/643#issuecomment-4168438971
https://github.com/tamirdresher
tamirdresherhttps://github.com/tamirdresher
on Apr 12, 2026https://github.com/github/squad/issues/643#issuecomment-4231140713
#797https://github.com/github/squad/pull/797
#797https://github.com/github/squad/pull/797
tamirdresherhttps://github.com/tamirdresher
completedhttps://github.com/github/squad/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Apr 12, 2026https://github.com/github/squad/issues/643#event-24418073197
bradygasterhttps://github.com/bradygaster
squad:eecomhttps://github.com/github/squad/issues?q=state%3Aopen%20label%3A%22squad%3Aeecom%22
squad:fidohttps://github.com/github/squad/issues?q=state%3Aopen%20label%3A%22squad%3Afido%22
on Sep 11, 2026https://github.com/github/squad/issues/643#event-31000737542
Sign up for freehttps://github.com/signup?return_to=https://github.com/github/squad/issues/643
Sign in to commenthttps://github.com/login?return_to=https://github.com/github/squad/issues/643
bugSomething isn't workinghttps://github.com/github/squad/issues?q=state%3Aopen%20label%3A%22bug%22
go:needs-researchNeeds investigationhttps://github.com/github/squad/issues?q=state%3Aopen%20label%3A%22go%3Aneeds-research%22
squadSquad triage inbox — Lead will assign to a memberhttps://github.com/github/squad/issues?q=state%3Aopen%20label%3A%22squad%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.