René's URL Explorer Experiment


Title: [Bug]: Pi auto-continuation pauses silently on any non-injected prompt (including post-compaction context) — only /loopx resume re-arms it · Issue #6107 · loopx-project/loopx · GitHub

Open Graph Title: [Bug]: Pi auto-continuation pauses silently on any non-injected prompt (including post-compaction context) — only /loopx resume re-arms it · Issue #6107 · loopx-project/loopx

X Title: [Bug]: Pi auto-continuation pauses silently on any non-injected prompt (including post-compaction context) — only /loopx resume re-arms it · Issue #6107 · loopx-project/loopx

Description: Pi auto-continuation pauses silently on any non-injected prompt — including Pi's own post-compaction context — and only /loopx resume re-arms it Affected version: Pi surface installed from release 20261010T034436Z; the userPrompt/interru...

Open Graph Description: Pi auto-continuation pauses silently on any non-injected prompt — including Pi's own post-compaction context — and only /loopx resume re-arms it Affected version: Pi surface installed from release ...

X Description: Pi auto-continuation pauses silently on any non-injected prompt — including Pi's own post-compaction context — and only /loopx resume re-arms it Affected version: Pi surface installed from rele...

Opengraph URL: https://github.com/loopx-project/loopx/issues/6107

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: Pi auto-continuation pauses silently on any non-injected prompt (including post-compaction context) — only /loopx resume re-arms it","articleBody":"# Pi auto-continuation pauses silently on any non-injected prompt — including Pi's own post-compaction context — and only `/loopx resume` re-arms it\n\n**Affected version:** Pi surface installed from release `20261010T034436Z`; the `userPrompt`/`interrupt` logic quoted below is identical in this repository at `0233a2f32` (`loopx/pi_goal_mode/pi-goal-loop-runtime.mjs`, `loopx/pi_goal_mode/index.ts`).\n**Host surface:** `pi` (Pi visible goal loop)\n**Impact:** a long-running Pi goal loop is disarmed by *any* prompt that is not the loop's own injected task body — including Pi's post-compaction context message and other system/queued work. The disarm is **silent** (no notification, no pause reason surfaced), the host looks healthy (`loopx status` clean, LoopX keeps reporting `should_run=true`), and every subsequent step then needs a human message. Recovery requires the owner to know about `/loopx resume`.\n\n## Code involved\n\n```js\n// loopx/pi_goal_mode/pi-goal-loop-runtime.mjs:1076\nasync userPrompt(key, prompt) {\n  ...\n  if (!binding || binding.terminal) return\n  if (String(prompt || \"\") !== binding.lastInjectedPrompt) {\n    const expected = { generation: binding.generation || 0, goalId: binding.goalId }\n    const committed = await services.store.write(key, { autoResume: false }, expected)\n    if (!committed) return\n    if (disposed || epoch !== instanceEpoch) return\n    cancelScheduled(key)          // \u003c- no notify() on this path\n  }\n},\n```\n\n```ts\n// loopx/pi_goal_mode/index.ts:619\npi.on(\"before_agent_start\", async (event, ctx) => {\n  const { key } = bindContext(ctx)\n  await loop.userPrompt(key, String(event.prompt || \"\"))\n})\n```\n\nCompare with the abort path, which *does* tell the user what happened:\n\n```js\n// pi-goal-loop-runtime.mjs:1097 (interrupt)\nservices.notify(`LoopX goal ${committed.goalId} auto-continuation paused after abort; run /loopx resume to continue.`, \"info\")\n```\n\nThe loop does correctly recognize its own turns (`lastInjectedPrompt` is set to the task body before the prompt is sent), so injected auto-continuation turns do not disarm it. The problem is everything else that reaches `before_agent_start`.\n\n## Observed behaviour\n\n* Session: one long-lived Pi session (`cwd` = the goal's project); the LoopX goal was armed and the loop ran for hours.\n* A Pi context **compaction** was recorded in that session's transcript at `2026-10-10T07:44:38Z`.\n* Afterwards the durable bridge state was:\n\n```json\n{ \"autoResume\": false, \"terminal\": false, \"generation\": 1,\n  \"sessionKey\": \"2026-10-10T05-49-04-788Z_01a1245b-9794-71a9-9f76-bc39a6a15eadcb34\" }\n```\n\n  i.e. a *pause*, not a lost binding — `sessionKey(process.env.PI_SESSION_FILE)` reproduces that key exactly, and `store.read(key)` resolves.\n* From that point on the loop produced no turns: every step required a human message. Nothing was shown in the UI.\n* The LoopX side was never the blocker: `quota should-run` kept returning `decision: run` / `should_run: true`, `scheduler_hint.action: run_now`, `cadence_class: active_work`, `must_attempt: true`.\n* Writing `autoResume: true` back into that same state file (what `/loopx resume` does) re-armed the loop.\n\n## Why this is a defect rather than intended behaviour\n\nA pause on *user* input is a reasonable design (the owner takes the wheel; explicitly re-arm afterwards). But:\n\n1. Pi's own automated context work (compaction, recovery, queued work — see `docs/extensions.md`: \"Automatic retries, recovery, compaction, or queued work can continue afterward\") is indistinguishable from user input at this event, so the loop is disarmed by the host's own housekeeping.\n2. The pause is silent, unlike the abort path which notifies. The user sees a healthy session and a stalled goal.\n3. Nothing durable records *why* it paused, so neither the user nor a diagnostic tool can tell \"paused by input\" from \"never armed\".\n\n## Suggested fixes (any of these)\n\n1. **Do not treat host-generated prompts as user input.** `before_agent_start` exposes the prompt plus structured `systemPromptOptions`, and the transcript records a `compaction` entry; use whichever signal is reliable to recognize compaction/recovery/queued runs and skip the disarm for them.\n2. **Notify on this path**, mirroring `interrupt()`: e.g. \"LoopX goal \u003cid> auto-continuation paused by input; run /loopx resume to continue.\"\n3. **Persist a pause reason** (e.g. `pauseReason: \"foreign_prompt\" | \"aborted\"`) in the bridge state so `/loopx status` and the host loop can surface it.\n4. Optionally **auto-re-arm** when the interrupting prompt was not user-authored.\n\n## Reproduction recipe\n\n1. Arm a LoopX goal in a Pi session and confirm one auto-continuation round.\n2. Trigger Pi context compaction (or send any manual message).\n3. Observe `.loopx/pi/\u003csessionKey>.json` flip to `autoResume: false` with no UI notification, and no further automatic turns, while LoopX continues to report `run_now` / `must_attempt: true`.\n","author":{"url":"https://github.com/hua03","@type":"Person","name":"hua03"},"datePublished":"2026-10-10T09:27:43Z","url":"https://github.com/loopx-project/loopx/issues/6107"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:683440ba-8a49-ccdd-44a6-68d63394cf4c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idADA2:E4848:105162:163763:6AED6E33
html-safe-nonce5ea41a221b87a890b12f823533f6760fba5a5796260b7727aedd5f3b72e41600
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBREEyOkU0ODQ4OjEwNTE2MjoxNjM3NjM6NkFFRDZFMzMiLCJ2aXNpdG9yX2lkIjoiMTU2ODI3MTU4ODY4NTM0NDMwNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac239b46b8447452d9bb45e6ffefffe373f7f82f5ee8dae2f93cc34b1814f506f7
hovercard-subject-tagissue:5789968655
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/loopx-project/loopx/6107/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a669909d4a54fa6d392b7532e289d51d05bd71773b29873556166930c665786c/loopx-project/loopx/issues/6107
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a669909d4a54fa6d392b7532e289d51d05bd71773b29873556166930c665786c/loopx-project/loopx/issues/6107
og:image:altPi auto-continuation pauses silently on any non-injected prompt — including Pi's own post-compaction context — and only /loopx resume re-arms it Affected version: Pi surface installed from release ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamehua03
hostnamegithub.com
expected-hostnamegithub.com
None56fb42677ae87ed3e64410323d67980aa65d0485568a7858f874e7edfc6d1c11
turbo-cache-controlno-preview
go-importgithub.com/loopx-project/loopx git https://github.com/loopx-project/loopx.git
octolytics-dimension-user_id331332701
octolytics-dimension-user_loginloopx-project
octolytics-dimension-repository_id1255217938
octolytics-dimension-repository_nwoloopx-project/loopx
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1255217938
octolytics-dimension-repository_network_root_nwoloopx-project/loopx
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
release9c9a37e2423ed382cf39f70b5aa4b4858b40a3b0
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/loopx-project/loopx/issues/6107#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Floopx-project%2Floopx%2Fissues%2F6107
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%2Floopx-project%2Floopx%2Fissues%2F6107
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=loopx-project%2Floopx
Reloadhttps://github.com/loopx-project/loopx/issues/6107
Reloadhttps://github.com/loopx-project/loopx/issues/6107
Reloadhttps://github.com/loopx-project/loopx/issues/6107
loopx-projecthttps://github.com/loopx-project
loopxhttps://github.com/loopx-project/loopx
Codehttps://github.com/loopx-project/loopx
Issues127 (127)https://github.com/loopx-project/loopx/issues
Pull requests44 (44)https://github.com/loopx-project/loopx/pulls
Discussionshttps://github.com/loopx-project/loopx/discussions
Actionshttps://github.com/loopx-project/loopx/actions
Projectshttps://github.com/loopx-project/loopx/projects
Security and quality5 (5)https://github.com/loopx-project/loopx/security
Insightshttps://github.com/loopx-project/loopx/pulse
https://github.com/loopx-project/loopx
New issuehttps://github.com/login?return_to=https://github.com/loopx-project/loopx/issues/6107
New issuehttps://github.com/login?return_to=https://github.com/loopx-project/loopx/issues/6107
[Bug]: Pi auto-continuation pauses silently on any non-injected prompt (including post-compaction context) — only /loopx resume re-arms ithttps://github.com/loopx-project/loopx/issues/6107#top
https://github.com/hua03
hua03https://github.com/hua03
on Oct 10, 2026https://github.com/loopx-project/loopx/issues/6107#issue-5789968655
https://github.com/hua03
hua03https://github.com/hua03
on Oct 10, 2026https://github.com/loopx-project/loopx/issues/6107#issuecomment-6096144082
hua03https://github.com/hua03
on Oct 10, 2026https://github.com/loopx-project/loopx/issues/6107#event-32935372241
fix(pi): keep auto-resume armed for host prompts and shrink the statu…https://github.com/hua03/loopx/commit/3149c438f815345486aa57566d1464a14cc05985
https://docs.github.com/articles/closing-issues-via-commit-messages
3149c43https://github.com/hua03/loopx/commit/3149c438f815345486aa57566d1464a14cc05985
fix(pi): make a paused goal loop visible and shrink the status widgethttps://github.com/hua03/loopx/commit/9bc2e6101758f075a8241844cce452f3ee959407
https://docs.github.com/articles/closing-issues-via-commit-messages
9bc2e61https://github.com/hua03/loopx/commit/9bc2e6101758f075a8241844cce452f3ee959407
https://github.com/loopx-agent
loopx-agenthttps://github.com/loopx-agent
on Oct 24, 2026https://github.com/loopx-project/loopx/issues/6107#issuecomment-6379689431
#6109https://github.com/loopx-project/loopx/pull/6109
userPrompt()https://github.com/loopx-project/loopx/blob/0c0d3dd31e865782f653ea3195ef36d8fac7b395/loopx/pi_goal_mode/pi-goal-loop-runtime.mjs#L1110-L1144
interrupt() and resume()https://github.com/loopx-project/loopx/blob/0c0d3dd31e865782f653ea3195ef36d8fac7b395/loopx/pi_goal_mode/pi-goal-loop-runtime.mjs#L1146-L1193
current adapterhttps://github.com/loopx-project/loopx/blob/0c0d3dd31e865782f653ea3195ef36d8fac7b395/loopx/pi_goal_mode/loopx-goal.ts#L622-L630
#6109https://github.com/loopx-project/loopx/pull/6109
#6107https://github.com/loopx-project/loopx/issues/6107
Sign up for freehttps://github.com/signup?return_to=https://github.com/loopx-project/loopx/issues/6107
Sign in to commenthttps://github.com/login?return_to=https://github.com/loopx-project/loopx/issues/6107
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.