Merge branch 'worktree-process-service-seam' into worktree-subprocess-consumers
# Conflicts: # docs/core-data-structures/subprocess.md # packages/subagent/subagent-subprocess/README.md # packages/subprocess/README.md # packages/subprocess/subprocess-local/README.md # scripts/translation-pairing.manifest.json
This commit is contained in:
@@ -331,8 +331,11 @@ export class LocalPtySession implements PtyBackendSession {
|
||||
// A prompt candidate can race bash's foreground handoff, but an interactive
|
||||
// child also inherits PROMPT_COMMAND. Silence therefore remains the bound
|
||||
// on waiting for shell ownership instead of letting a child marker suppress
|
||||
// readiness until the absolute timeout.
|
||||
if (startupHasOutput && Date.now() - this.lastOutputAt >= this.config.idleSilenceMs) {
|
||||
// readiness until the absolute timeout. One final poll lets a foreground
|
||||
// handoff coincident with that boundary win before the fallback settles.
|
||||
const idleFor = Date.now() - this.lastOutputAt
|
||||
const handoffGrace = this.promptSeen ? this.config.pollIntervalMs : 0
|
||||
if (startupHasOutput && idleFor >= this.config.idleSilenceMs && idleFor - this.config.idleSilenceMs >= handoffGrace) {
|
||||
this.settleActive('inferred_idle')
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user