fix: re-trace system prompt on agent switch#548
fix: re-trace system prompt on agent switch#548VJ-yadav wants to merge 1 commit intoAltimateAI:mainfrom
Conversation
|
This PR doesn't fully meet our contributing guidelines and PR template. What needs to be fixed:
Please edit this PR description to address the above within 2 hours, or it will be automatically closed. If you believe this was flagged incorrectly, please let a maintainer know. |
|
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. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughSystem-prompt tracing in SessionPrompt.loop now tracks the last-traced agent name and logs the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested labels
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
89b8cbc to
3b691b5
Compare
❌ Tests — Failures DetectedTypeScript — 15 failure(s)
cc @VJ-yadav |
Review — Ready after rebaseScope: Fixes #291 — Analysis
CI status (commit
Recommendation cc @anandgupta42 — rebase, verify marker guard, then ready for |
3b691b5 to
6d200f5
Compare
6d200f5 to
e060841
Compare
Consensus code-review applied — no changes neededRan a 4-participant consensus review (Claude + GPT 5.4 + Gemini 3.1 Pro + self-review). Verdict: APPROVE — both GPT 5.4 and Gemini 3.1 Pro agree the 6-line fix is correct and ready to merge. The Non-blocking suggestions (NOT applied, kept as optional follow-ups):
The first suggestion is worthwhile but requires session-loop test infrastructure that doesn't exist yet; tracked as a follow-up. The fix is small enough that shipping without new tests is acceptable. All CI green. Ready for merge as-is. |
The `step === 1` guard only traced the first agent's system prompt because `step` increments continuously and is never reset on agent switches. Track the last-traced agent name so subsequent agents also get their system prompts logged. Fixes AltimateAI#291 Co-Authored-By: Vijay Yadav <vijay@studentsucceed.com>
3a30ee6 to
01c48e6
Compare
Summary
step === 1guard inprompt.tsonly traced the first agent's system prompt becausestepincrements continuously and is never reset on agent switchestracedAgentvariable to track the last-traced agent name, so each agent's system prompt is logged when it first becomes activeFixes #291
Test Plan
prompt.ts(pre-existing test file failures are unrelated)Checklist
Summary by CodeRabbit