Repository navigation
Conversation
Greptile SummaryThis PR carries a project workspace’s source type into heartbeat run resolution and permits explicitly declared
Confidence Score: 5/5The PR appears safe to merge; the non-Git exception is explicit, narrowly scoped, and retains the surrounding workspace-coherence checks. No actionable new defects or outstanding rule violations were identified in the PR changes.
|
| Filename | Overview |
|---|---|
| server/src/services/heartbeat.ts | Propagates project workspace source type and narrowly exempts intentional non-Git paths from the .git metadata check while retaining other coherence guards. |
| server/src/tests/heartbeat-workspace-session.test.ts | Covers acceptance of a plain non_git_path workspace and continued rejection when it is realized as a Git worktree. |
| doc/execution-semantics.md | Documents that intentional non-Git project workspaces may run without Git metadata while other workspace checks remain applicable. |
Reviews (2): Last reviewed commit: "Merge branch 'master' into fix/honor-non..." | Re-trigger Greptile
|
This is the right shape of fix, and it is the one I would back of the three open approaches. Carrying the workspace's own Some evidence from running into this on a larger instance, in case it helps justify picking one of these up. It still reproduces on 2026.916.0. It is also latent in a way that makes it hard to attribute: attaching a folder sets the workspace expectation immediately, but nothing fails until that project's next run. After a batch of folder attachments, 24 of 48 projects were pre-broken and only 4 ever surfaced recovery cards, because only those 4 happened to be woken afterwards. The card that eventually appears says nothing about the attach that caused it, so the gap between cause and symptom can be days. Scoping the bypass to declared Worth noting for whoever triages these: #7957 covers a genuinely distinct case that this PR does not, folders nested inside an existing git checkout. Background on the underlying bug is in #9824. |
|
Thanks for this, @raviy06. I am running this fix on a live instance, and it does exactly what it says. It had gone a month without a maintainer review, so I carried it forward in #13929 on current If you would rather keep going here, say so and I will close mine. I only want one of these to land. |
|
Carried forward PR is fine with me as well. |
|
Thanks @raviy06: this was fixed upstream in #15749 (merged 2026-10-13). Master skips the If you're still seeing this problem on current Thank you for the contribution, and sorry it took us a while to get back to you. Generated by Claude Code |
Thinking Path
Linked Issues or Issue Description
What happened?
A Git-sensitive local adapter received a valid project workspace with
sourceType: non_git_path. The heartbeat preflight stopped before adapter launch withworkspace_validation_failedandmissing_git_metadatabecause the directory had no.gitmetadata.Expected behavior
Paperclip must accept a declared
non_git_pathproject workspace when the execution and persisted workspace strategies are notgit_worktree. Paperclip must keep all other project, workspace, cwd, fallback, provider-ref, and branch coherence checks.Steps to reproduce
sourceType: non_git_pathand an existing non-Git directory ascwd.workspace_validation_failedwith reasonmissing_git_metadatabefore adapter launch.Paperclip version or commit
The bug reproduces on
v2026.824.0and on the pre-fixmastercode path.Deployment mode
Local trusted installation with a local adapter.
Duplicate search
I searched open Paperclip issues and pull requests for
non_git_path,missing_git_metadata, and workspace-validation variants. I found no active duplicate.What Changed
sourceTypeinto resolved run workspace metadata..gitpresence check for intentionalnon_git_pathworkspaces..gitrequired forlocal_pathand everygit_worktreeexecution.Verification
pnpm exec vitest run server/src/__tests__/heartbeat-workspace-session.test.ts -t "allows a non_git_path project workspace without git metadata"missing_git_metadatabefore the implementation.mise x node@26.5.1 -- pnpm exec vitest run server/src/__tests__/heartbeat-workspace-session.test.tsmise x node@26.5.1 -- pnpm -r typechecknon_git_pathproject workspaceNON_GIT_WORKSPACE_OK.mise x node@26.5.1 -- pnpm test:runOnboardingWizard.test.tsxexpected a denied-storagegetItemcall under Node 26.origin/masteratca02d2463; this branch does not touch UI or storage code.mise x node@26.5.1 -- pnpm buildRisks
Low risk. The exception is explicit and data-backed. It applies only to
sourceType: non_git_pathwhen neither workspace strategy isgit_worktree. All other workspace validation remains unchanged.Model Used
OpenAI Codex subscription with
gpt-5.6-sol-900k. The model used a 900k context window, repository tools, terminal execution, and independent review agents.Checklist
Fixes: #/Closes #/Refs #OR (b) described the issue in-PR following the relevant issue template#NNN/github.com/paperclipai/paperclipURLs)docs/...,fix/...) and contains no internal Paperclip ticket id or instance-derived details