Repository navigation
fix(pi): the thinking menu before the first message matches the chat's - #34592
Conversation
Pi's pre-session catalog now asks Pi for its models over RPC and builds each menu with the same projection a running chat uses, falling back to the text listing only when Pi cannot answer over RPC.
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review.
|
|
Pi's menu before the first message used a coarse listing, so it could offer unsupported levels and omit model-specific choices. Both cold and live menus now use Pi's native inventory. The selected value describes the next message: choosing High keeps High selected while the preceding message may still have run at Minimal. Supported display is derived separately from the raw request and from proof of what Pi applied. The final main integration also exposed a capture boundary: a supported display value could replace the remembered raw request. The optional display-only Six production review rounds are complete, with zero new defects in the fresh final review on CI is green on Evidence carry: real runs and Pi screenshots are on Targeted Pi evidence on14f9bc8: an authentic main008a7345 profile saved Off before sending, stopped gracefully, and opened on the final build. With Pi1.1 and the machine’s OpenAI model, the recovered cold menu showed six supported choices with Min selected and Off absent. Two normal sends completed in the same native session: “Amber leaves drift.” at native Minimal, then “Quiet rivers shine.” at native High. Between them, selecting High and reopening the picker retained High while the native checkpoint still recorded Minimal. The first post-click controls were already enabled; the pending transient was not observed. A separate host-options response and its confirmation field were not captured, so that exact completion is not claimed; automatic post-save readback and its projection are source/test evidence. Native request counts and provider-wire mapping were not measured. The initial empty-account rig state was repaired through the authorized normal command setting before this evidence was captured. The real-chain app stopped gracefully, its recorded Pi child was absent, the copied auth was removed, and the five real-config hashes were unchanged. The one legitimate conversation file remains within the isolated evidence profile; sessionless discovery cleanup is the carried evidence below. This is the one changed Pi run-row after resolution. The separate desktop fixture passed: after a normal Medium preference, graceful restart and capability-only change, a new Pi tab retained raw Medium in its journal and displayed XHigh among exactly Off/Min/Low/XHigh. The first cached seven-choice image is invalid gap evidence and was preserved separately. An ordinary catalog read after its ten-minute freshness interval supplied the four-choice input. This is a credential-free recorded-policy UI fixture; no gapped-provider reply is claimed. The shipping-native-iOS gap screenshot passed as detailed below. The following unchanged evidence carries from212dd54080c4dc46a8bb7ae93861b85b01713b47: real Pi1.1/OpenAI cold/live equality across26 ordered native IDs/names and six efforts, real Minimal/XHigh replies; signed-out main/branch No Models parity; sessionless probe exit/no-session-file evidence; one successful real reply each with Claude and Codex; shipping iOS six-choice Minimal appearance. The fresh flow review found no changed shared lifecycle flow requiring another Claude/Codex run. Main's merge alone and the test-only commit do not stale these flows. Prior Windows cleanup verified the recorded owned identities absent after graceful stops; copied Pi auth was removed and real Pi auth hash unchanged. One shared-agent run's real .claude.json hash changed, noted without reading contents. Codex's first429 was capacity, followed by the successful real retry pictured below. Old mobile shutdown and service exits were recorded, final helper absence lead-reported without a separate census; Metro used a forced stop. Its lease expired during a transport delay after the rig stopped; saved artifacts were recovered and hash-verified. These limitations are retained rather than promoted to stronger evidence. For Brennan's review:
Between these replies, High stays selected for the next message while native Pi still records the preceding Minimal level. Exact host-response/confirmation instrumentation limits are stated above. The following is a recorded-policy UI fixture, with no agent run. Both images are on the branch: a normal Medium preference under the full map, then a new chat under the deliberately gapped map. Raw Medium remains saved; the displayed selection becomes XHigh.
Full unsent fixture caption and composer.
The branch-only native iOS gap case passed on14f9bc8 using the shipping WKWebView route and production mobile bundle in a stock Debug simulator client. Normal phone Create Tab → Pi created one unsent fixture reservation seeded with raw Medium before its first options read. Read-only runtime hook evidence shows newLaunch true, raw Medium unchanged, and a derived XHigh selection among exactly Off/Min/Low/XHigh; no unsupported Medium and no selection tap. The stock four-choice picker uses segments. This is a recorded-policy capability fixture, with zero provider launches, sends, prompts or setOption calls; the visible user bubble is provenance annotation, not a submitted message. All50 safe artifacts were independently fetched and hash-verified, both full native images inspected, and20 shipping-source hashes matched QA head14f9bc8. All47 recorded owned identities were absent, the owned simulator was Shutdown, pairing removed and assigned ports clear. Metro used a forced Node stop. Hash-only changes to .claude.json and .codex/config.toml are noted; the first failed JS build preceded the earliest config baseline. No config contents were inspected. Native build setup needed the current ExpoLocalization module and an iOS16 simulator minimum target; production source was unchanged. This is UI evidence, not a release-device or performance measurement.
Recorded-policy UI fixture only; no agent run. The visible annotation is fixture provenance. Judgment points: native supported display, prospective selection projection, and separate native application proof. |
[Medium impact] The PR appears safe to merge; no blocking issue was found. SummaryPi’s pre-chat thinking menu now uses the same model data and menu builder as a running chat. Remembered effort choices stay separate from what Pi reports applying.
|
…6242) #34592 made the effort picker hide any model whose effort menu is unconfirmed (effortsKnown: false), which Pi needs because its menus are exact. #36158 relies on OMP showing exactly such recorded menus for models that are not running, so the two merged into failing OMP tests on main. The hide now applies to Pi only; OMP, Claude and Codex offer unconfirmed menus as before.













ELI5
Before you send the first message in a Pi chat, the thinking menu now shows the same choices Pi will offer once the chat is running, instead of a generic list.
What Changed
The final main integration also exposed a capture boundary: a supported display value could replace the remembered raw request. The optional display-only
current.reportedEffortnow carries Pi's scoped observed effort separately;current.effortand each captured message preserve the raw request. Older clients ignore the extra field; older servers omit it and keep their existing advertised launch/send path. Save/create/send never depend on catalog membership.Before: before the first message, Orca built the Pi model picker from
pi --list-models. That text table only says whether a model can think, so every thinking model got the same five levels (off, minimal, low, medium, high), and labels were made up from model ids. Levels a model doesn't support still showed (for example "off" on a model that can't turn thinking off), and extended levels it does support (xhigh, max) never showed. After the first message the menu switched to Pi's real per-model menu, so the choices changed under the user. A background catalog refresh could switch it back.After: the pre-session catalog asks Pi for its models over RPC (
get_available_models, sessionless with--no-session, same account and launch environment as a chat) and builds each model's menu with the same function a running chat uses (readPiRpcModelOptions). For the same successful RPC inventory, the cold and live menus use one source and one projection. Account-home discovery can still differ from a workspace with its own extensions, and failure fallback retains the old coarse menu. Labels are Pi's own model names. If an extension asks a question while the catalog is being read, Orca answers "cancelled" so Pi can continue. If Pi can't answer over RPC at all (for example a startup extension waiting on a dialog, which Pi 1.1 can't receive before startup finishes), Orca falls back to today's text listing, so no one loses a list they get today.The list stays per account, read from the home folder, as before. No saved-data format changes: the catalog row already carries per-model thinking levels, and older clients already render them. The existing options response adds the optional display-only field described above. Remembered Pi requests stay intact. With known native support, the picker derives the level Pi will use:
offdisplays Minimal on a model without Off, and a gapped new seed uses Pi's higher-first policy. Catalog membership never admits or refuses a save, create or send. The picker is prospective: picking High keeps High selected for the next message while the preceding message may have run at Minimal. Proof of native application stays separate.Why
Two parsers of two sources for one fact let the menus drift. The common pattern for Pi is to read the model list over RPC and build the menu from each model's thinking map, with one projection for the new-chat and running-chat menus. That's what this adopts. A model Pi drops during startup isn't shown, since a running chat couldn't use it either.
Alternatives considered:
Intended differences from the common pattern:
current.reportedEffort; there is no new subscription or saved state.Supersedes #32254.
Linked Issue
N/A (maintainer).
Visual Proof
Actual same-profile upgrade from main008a7345 to final14f9bc8, before sending:
Two real Pi replies completed at native Minimal then High. Between them, the normal picker retained prospective High while the preceding native level was Minimal:
Credential-free recorded-policy UI fixture, no agent run: normal Medium preference under the full map, then a new chat under the deliberately gapped map. Its journal still stores raw Medium.
Recorded-policy UI fixture only; no agent run. The visible annotation is fixture provenance.
Testing
Targeted Windows Pi chain completed on14f9bc8: authentic prior-build raw-Off unsent profile, graceful upgrade, supported Min cold selection, actual Minimal reply, normal High selection/reopen over held native Minimal, then actual High reply; exactly two sends in the same native session. The first post-click controls were already enabled, so the pending transient was not observed. A separate host-options response/current.confirmed capture and native request counters were not recorded; automatic post-save readback/projection are source/test evidence, not claimed runtime measurements. The desktop gapped new-seed screenshot passed through normal UI with raw Medium preserved. Shipping-native iOS gap screenshot passed with a raw Medium new reservation, supported-only segments and production-derived XHigh; fixture scope and images above. Existing signed-out/probe/shared-agent and unchanged-menu evidence carries under the fresh flow review; no second full QA round.
The final Windows app stopped gracefully; all33 recorded owned identities were absent and assigned ports clear. Copied auth was removed and five real-config hashes unchanged. The credential-free fixture wrote no native session file; one legitimate real-Pi conversation file remains in its isolated evidence profile. Approximate-birth fixture process receipts and transient inventory limits remain disclosed in the loop report.
e9b85a377ad; F1/F2/F3 and the CI-found legacy Claude capture regression are fixed and independently verified. Final three-seat raw/report/capture contract, first-hand whole-mechanism reference comparison and source readiness checks are clean. Deferred P3: injected tests do not execute production extension-dialog cancellation wiring; no reproduced defect.e9b85a377adcd3d1d6ff500b59ef2d1b0a3c98bb: Main 40981253332, Mobile 40981253283, Runtime, Persistence and WSL distro smoke checks; the real WSL-terminal job was skipped. CI owns lint/typecheck/build verification.212dd54: real Windows Pi 1.1.0 on the machine's OpenAI sign-in, modelopenai-codex/gpt-6.1-sol: main-created remembered off resolves to Min; the native/cold/live inventories match all 26 ordered IDs and names. Six supported levels exclude Off and include XHigh/Max. Real Min and XHigh replies complete.The branch-only native iOS gap case passed on14f9bc8 using the shipping WKWebView route and production mobile bundle in a stock Debug simulator client. Normal phone Create Tab → Pi created one unsent fixture reservation seeded with raw Medium before its first options read. Read-only runtime hook evidence shows newLaunch true, raw Medium unchanged, and a derived XHigh selection among exactly Off/Min/Low/XHigh; no unsupported Medium and no selection tap. The stock four-choice picker uses segments. This is a recorded-policy capability fixture, with zero provider launches, sends, prompts or setOption calls; the visible user bubble is provenance annotation, not a submitted message. All50 safe artifacts were independently fetched and hash-verified, both full native images inspected, and20 shipping-source hashes matched QA head14f9bc8. All47 recorded owned identities were absent, the owned simulator was Shutdown, pairing removed and assigned ports clear. Metro used a forced Node stop. Hash-only changes to .claude.json and .codex/config.toml are noted; the first failed JS build preceded the earliest config baseline. No config contents were inspected. Native build setup needed the current ExpoLocalization module and an iOS16 simulator minimum target; production source was unchanged. This is UI evidence, not a release-device or performance measurement.
Review
Six production rounds are complete and the final fresh review is clean on
e9b85a377adcd3d1d6ff500b59ef2d1b0a3c98bb; exact-head CI is green.db9072831fcintegrates main plus optional display-onlycurrent.reportedEffortand raw capture in the existing owners; production-boundary tests cover the host response, both client capture callbacks and exact acceptance/native setter.44aaf468e7ais a further main merge with a fixture-type-only conflict resolution.e9b85a377adrestores main's legacy non-Pi singleton-effort behavior; its unchanged regression passes, and no net appearance difference from main needs a new screenshot. These final changes are tests-row UI/serialization/capture flows: raw Medium still reaches the unchanged native Pi setter and Pi applies XHigh. No lifecycle/observation scheduling/queue/replay algorithm changed. Real Pi evidence and screenshots carry from14f9bc8, with earlier unchanged Claude/Codex evidence; they are not claimed as proof of the new serialization. The loop's existing status comment records the exact QA carry marker and evidence limits.Agent skill upstream boundary
Notes
current.reportedEffort; older clients ignore it, and older servers omit it while keeping their existing advertised action paths.Checklist