Remove legacy memory composition block in refresh_system_prompt#4442
Remove legacy memory composition block in refresh_system_prompt#4442Hmbown wants to merge 2 commits into
Conversation
Removes the legacy `user_memory_block` composition logic from `refresh_system_prompt`, `Engine::new`, and `build_app_system_prompt_with_goal` in the TUI crate. The new Moraine recall system is now stable, making this fallback mechanism obsolete. Also cleans up related TODO comments. Co-authored-by: Hmbown <101357273+Hmbown@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
|
Claude finished @Hmbown's task in 2m 53s —— View job Claude's Review Task List
SummaryThis PR hardcodes Correctness — likely regression (high priority)
Net effect: for the default-config user who has If the intent is a full cutover to Moraine, this should happen alongside flipping the Correctness — stale diagnostics
Provider/model/route safetyNo provider/model selection logic is touched by this diff — not applicable here. Reuse / simplificationThe mechanical part of the change (dropping the now-dead TestsNo test was added or updated to cover this behavior change, and none of the existing tests ( SecurityNo secret handling, shell/exec, or input-validation surface touched. |
|
Moved to v0.9.4 draft. #3495 is still open and requires the Moraine adapter, MCP recall wiring, and end-to-end proof before the legacy prompt injection is config-gated/deprecated. This slice alone makes documented memory writes unreadable while leaving config, tools, commands, and docs active. |
Acknowledged. Since #3495 is still open and the legacy prompt injection cannot be deprecated yet, I understand this PR is moving to a draft state. I will stop work on this task for now. |
Reverts the previous changes that removed the legacy memory block composition logic. As noted in PR #3495, Moraine recall and MCP wiring are not yet stable, and this code must remain active. Co-authored-by: Hmbown <101357273+Hmbown@users.noreply.github.com>
Removes the legacy memory block composition logic from
refresh_system_promptand related system prompt setup paths (Engine::new,build_app_system_prompt_with_goal). The old memory retrieval block is replaced by settinguser_memory_block: NoneinPromptSessionContextsince the new Moraine recall method is stable. Also removed the associated TODO comment intool_setup.rs.PR created automatically by Jules for task 3913683453046725750 started by @Hmbown