Repository navigation
fix(tui/swarm-rename): wire TUI rename handler to real swarm dispatch - #105
KooshaPari wants to merge 2 commits into
Conversation
The TUI rename action in tui_state.rs:2326 logged "Rename sent" but the new_label was dropped. Wire it to the real dispatch. Changes: - Protocol: add target_session_id to Request::RenameSession - Server: handle target_session_id in client_lifecycle dispatch (follows SetReasoningEffort pattern) - Backend: rename_session() now accepts optional target_session_id - TUI: RenameConfirm populates pending_swarm_rename; remote key handler drains it and dispatches Request::RenameSession - Tests: two new protocol roundtrip tests for target_session_id Diagnosis: (c) feature was unfinished - UI existed but dispatch was never wired. tx-agent: jcode tx-validated: cargo-check tx-scope: crates/jcode-tui, crates/jcode-protocol, crates/jcode-app-core tx-intent: TUI swarm rename now actually renames the target member session
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 48 minutes. View limit details
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 |
🤖 CodeAnt AI — Review Status
|
Thanks for using CodeAnt! 🎉We're free for open-source projects. if you're enjoying it, help us grow by sharing. Share on X · |
| handle_rename_session( | ||
| id, | ||
| title, | ||
| &target_agent, | ||
| &target_session_id, | ||
| &swarm_members, | ||
| &client_event_tx, | ||
| ) | ||
| .await; |
There was a problem hiding this comment.
Suggestion: When the target agent is processing a turn, this await waits for its mutex inside the serial request loop, delaying every later request on this connection.
Assessment: 🟠 Major · 🔁 Occurrence: Sometimes · 🏷️ Performance
Prompt for AI Agent 🤖
This is a comment left during a code review.
**Path:** crates/jcode-app-core/src/server/client_lifecycle.rs
**Line:** 2021:2029
**Comment:**
*Performance: When the target agent is processing a turn, this await waits for its mutex inside the serial request loop, delaying every later request on this connection.
Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix
CodeAnt PR Risk: Medium Risk
Assessed commit: |
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (15 files)
Previous Review SummaryCurrent summary above is authoritative. Previous snapshots are kept for context only. Previous reviewThis review did not finish. The model reached its output limit before it Reviewed by free · Input: 153.6K · Output: 3.4K · Cached: 607.1K |
|
PR #105 codeant findings:
Validation: cargo check -p jcode-app-core --no-default-features -j 1, cargo check -p jcode-protocol --no-default-features -j 1, and cargo check -p jcode-tui --no-default-features -j 1 all passed. Six protocol rename tests passed. The added busy-agent regression could not run because the existing Windows lib-test build fails at unchanged crates/jcode-app-core/src/tool/communicate/transport.rs:159: expect_err requires Stream: Debug (E0277). This validation blocker is recorded in the task RESULT; the unrelated source was preserved. Commit: 95de32f. |
1 similar comment
|
PR #105 codeant findings:
Validation: cargo check -p jcode-app-core --no-default-features -j 1, cargo check -p jcode-protocol --no-default-features -j 1, and cargo check -p jcode-tui --no-default-features -j 1 all passed. Six protocol rename tests passed. The added busy-agent regression could not run because the existing Windows lib-test build fails at unchanged crates/jcode-app-core/src/tool/communicate/transport.rs:159: expect_err requires Stream: Debug (E0277). This validation blocker is recorded in the task RESULT; the unrelated source was preserved. Commit: 95de32f. |
|
Receipt: reviewed all three findings against current PR tip 95de32f.
Validation: inspected TUI capture/confirmation, backend serialization, protocol roundtrip tests, server dispatch, and the busy-agent regression test. Cargo validation was attempted but could not be completed in this environment; compilation/tests remain unverified (details in kcodeant-RESULT.md). No additional fix commit was needed or pushed. |
* docs(audit): 2026-10-17 full-state audit mdset (10 lanes, 4 PRs) 10-agent subagent-driven audit of the KCode fork. 18 artifacts in this mdset cover all 10 audit lanes plus the new artifacts from the in-flight agents that completed during this cycle. In this cycle we shipped: - PR #99 fix(a2/auto-dream): make LLM-stub path honest - PR #100 ci: add 4 load-bearing crates to CI workflow - PR #101 docs(readme): correct provider count - PR #105 fix(tui/swarm-rename): wire TUI rename handler (A-1 retry) Investigated, not merged: - PR #94 (fork builds never auto-update): 3 real issues filed in #104 - 9 STALE PRs: 7 closed, 4 commented, label 'needs-operator-decision' created - 6 cherry-pick candidates identified (low-risk additive) - 1 critical security patch (rustls/quinn-proto) requires manual Cargo.lock fix Constraints honored: - No destructive git ops - No upstream PRs from KooshaPari/ (binding memo 2026-10-15) tx-agent: jcode tx-validated: manual tx-scope: docs/audits/2026-10-17-full-state/ tx-intent: persist 10-lane audit artifacts in the source repo * docs(audit): verify CLI test target and correct fork divergence counts
User description
Bug
TUI swarm panel rename (
tui_state.rs:2326) showed "Rename sent" to the user but silently dropped thenew_label. The UI existed; the dispatch was never wired.Root cause
Audit lane A-1 (swarm rename UI lies) classified this as: (c) feature unfinished — UI shell present, dispatch stub never implemented. Original
RenameSessionrequest had notarget_session_idfield, and the TUI never populated it. The status message was hard-coded "Rename sent" regardless of whether the request was sent.Fix
jcode-protocol: addtarget_session_id: Option<String>toRequest::RenameSessionjcode-app-core(server/client_lifecycle): handletarget_session_idin dispatch (follows the existingSetReasoningEffortpattern)jcode-app-core:rename_session()now accepts optionaltarget_session_idjcode-tui:RenameConfirmpopulatespending_swarm_rename; remote key handler drains it and dispatchesRequest::RenameSessionwith the target session idTests
target_session_idincrates/jcode-protocol/src/protocol_tests/core_events.rsValidation
cargo check --workspace: passed (per commit trailer)tx-agent: jcode
tx-validated: cargo-check
tx-scope: crates/jcode-tui, crates/jcode-protocol, crates/jcode-app-core
tx-intent: TUI swarm rename now actually renames the target member session
CodeAnt-AI Description
Make swarm panel renames update the selected member
What Changed
Impact
✅ Swarm member names update from the panel✅ Clearer errors when a target session is missing💡 Usage Guide
Checking Your Pull Request
Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.
Talking to CodeAnt AI
Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:
This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.
Example
Preserve Org Learnings with CodeAnt
You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:
This helps CodeAnt AI learn and adapt to your team's coding style and standards.
Example
Retrigger review
Ask CodeAnt AI to review the PR again, by typing:
Check Your Repository Health
To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.