Repository navigation
perf(turn): defer optional modules on read-only previews - #8254
Open
loopx-agent wants to merge 1 commit into
Open
loopx-agent wants to merge 1 commit into
loopx-agent wants to merge 1 commit into
Conversation
Keep process-tree cleanup and semantic preference recall on their selected paths. Exercise the normal Turn plan entrypoint in fresh File and SQLite fixture processes and preserve bounded Git and validation cleanup. Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Goal And Delivered Outcome
The read-only
loopx turn plancommand eagerly loaded process cleanup and extension recall code. In a fresh process, the preview first loaded the cleanup helper through the public-boundary scanner, then reached the same helper through independent preference and validation imports. Load each owner when its operation selects it.On the same synthetic File and SQLite Goals, the source checkout retained 661 → 653 loaded Python modules after
turn plan. The import trace also fell from 663 to 654 entries. One omitted entry was a second reference to an existing module. Both revisions returned the same route, selected Todo and iteration context. The preview kept the Goal and registry intact.Author Declaration
Written by model_agent, OpenAI Codex.
Implemented against the Turn preview isolation assertion added by #8185 and the bounded Git probe cleanup from #8152.
Scope And Continuation
The patch covers the Python import paths of the CLI preview and their selected operations. It can be reviewed and reverted independently of the complete Turn cutover. The comparison measures loaded modules in fresh source-checkout processes.
Validation
8e86f173f08bd55eb833d8cdf42360f93bf989fec65486ef2af5e5d46ce31517bd284507a0b8888afinishedwith synthetic fixturesreal_entrypointloopx turn planon isolated File and SQLite fixtures. Both reject the baseline's eager imports and pass at this head. The public CLI scan agrees for both revisions on clean files and tracked private-state refusal.integrationstaticstaticshould_runfrom the progressive navigation header and fails identically at base and head. Following the returned reader yieldsshould_run=trueandeffective_action=normal_runat both revisions.Evidence covers local source-checkout execution. Installed application and model-level performance remain unmeasured.
Frontend / Visual Evidence
UI impact
none. The CLI output and app presentation are unchanged by this import-path change.中文:默认 Turn 预览延迟加载进程清理及语义偏好召回模块。File 和 SQLite 实测各少加载 8 个 Python 模块,计划和公开边界扫描结果一致。原 Git 与校验进程的超时、取消测试继续通过。