Pipeline runs use the workspace's directory environment
Resolve the run workspace's environment with workenv (direnv, parent .envrc, mise; same account rule as Claude chats) at run start and resume, and apply it to Pi stage processes, a per-environment Pipelines-owned OpenCode stage service (keyed by a hash of the change, reused across runs, idle ones stopped after PIPELINES_OPENCODE_STAGE_IDLE_TIMEOUT, revived per registration), delivery-gate checks and merges, plain-stage opencode CLI calls and file-change capture git reads. Record the directory, .envrc files, sources and variable names (never values) on the run detail; a blocked .envrc becomes a run warning.
This commit is contained in:
@@ -159,7 +159,7 @@ func FromReference(path string) (*Connection, error) {
|
||||
// A retained reference to the owned stage service revives it on its
|
||||
// recorded URL and password if it exited; it never selects another one.
|
||||
if isOwnedStageRegistration(reference.CredentialFile) {
|
||||
if err := reviveOwnedStageService(reference.Directory); err != nil {
|
||||
if err := reviveOwnedStageService(reference.CredentialFile, reference.Directory); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user