Skip to content

style(tui): collapse the inline-notice guard so the file holds its size - #78

Merged
KooshaPari merged 1 commit into
masterfrom
fix/inline-size
Oct 15, 2026
Merged

KooshaPari merged 1 commit into
masterfrom
fix/inline-size

Conversation

@KooshaPari

@KooshaPari KooshaPari commented Oct 15, 2026 •

Copy link
Copy Markdown
Owner

User description

Summary

The merged panic refactor replaced notice.unwrap().0 with a two-line nested if let, pushing crates/jcode-tui/src/tui/ui_inline_interactive.rs from 1382 to 1384 and failing check_code_size_budget.py.

Merging the two conditions into a single let-chain restores the file to 1382 with identical behavior.

// before (1384)
if notice_rows > 0 {
    if let Some((text, _)) = notice.as_ref() {
        lines.push(Line::from(Span::styled(text.clone(), dim)));
    }
}

// after (1382)
if notice_rows > 0 && let Some((text, _)) = notice.as_ref() {
    lines.push(Line::from(Span::styled(text.clone(), dim)));
}

Validation

  • cargo check -p jcode-tui --lib -> clean
  • check_code_size_budget.py no longer lists this file

The one remaining failure is pre-existing

crates/jcode-tui/src/tui/mod.rs (2072 -> 2077) is not from the panic refactor. It was already 2077 at pre-refactor master (b7d9dc117) and comes from commit f396d0fd7 (fix(tui): stop kitty key-event leaks under herdr/conpty), which is not in this diff. Left alone — it belongs to whoever owns that commit.

Ledger

tx-agent: jcode
tx-task: panic-budget-ratchet
tx-validated: cargo-check
tx-scope: crates/jcode-tui/src/tui/ui_inline_interactive.rs
tx-intent: return ui_inline_interactive.rs to its tracked size after the panic refactor added two lines

CodeAnt-AI Description

Preserve inline suggestion notices without increasing file size

What Changed

  • Inline suggestion notices continue to appear when available; their display behavior is unchanged

Impact

✅ Inline suggestion notices remain visible

💡 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:

@codeant-ai ask: Your question here

This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.

Example

@codeant-ai ask: Can you suggest a safer alternative to storing this secret?

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:

@codeant-ai: Your feedback here

This helps CodeAnt AI learn and adapt to your team's coding style and standards.

Example

@codeant-ai: Do not flag unused imports.

Retrigger review

Ask CodeAnt AI to review the PR again, by typing:

@codeant-ai: review

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.

The panic refactor replaced `notice.unwrap().0` with a two-line nested
`if let`, which pushed this already-tracked file from 1382 to 1384 and
failed `check_code_size_budget.py`. Merging the two conditions into a
single let-chain restores it to 1382 with identical behavior.

`cargo check -p jcode-tui --lib` is clean.

The remaining `check_code_size_budget.py` failure,
`crates/jcode-tui/src/tui/mod.rs` (2072 -> 2077), is pre-existing and not
from this work: it was already 2077 at pre-refactor master and comes from
commit f396d0f.

tx-agent: jcode
tx-task: panic-budget-ratchet
tx-validated: cargo-check
tx-scope: crates/jcode-tui/src/tui/ui_inline_interactive.rs
tx-intent: return ui_inline_interactive.rs to its tracked size after the panic refactor added two lines
Copilot AI balanced review requested due to automatic review settings October 15, 2026 08:07

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@codeant-ai

codeant-ai Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

🤖 CodeAnt AI — Review Status

Status Commit Started (UTC) Finished (UTC)
✅ Reviewed your PR 098c33c Oct 15, 2026 · 08:07 08:10

@codeant-ai

codeant-ai Bot commented Oct 15, 2026

Copy link
Copy Markdown

Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@coderabbitai

coderabbitai Bot commented Oct 15, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You'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 14 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 4e2151da-abef-4e6e-9022-4af8d07c21ed
📥 Commits

Reviewing files that changed from the base of the PR and between 8cd6d0e and 098c33c.

📒 Files selected for processing: 1
  • crates/jcode-tui/src/tui/ui_inline_interactive.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codeant-ai codeant-ai Bot added the size:XS This PR changes 0-9 lines, ignoring generated files label Oct 15, 2026
@codeant-ai

codeant-ai Bot commented Oct 15, 2026

Copy link
Copy Markdown

CodeAnt PR Risk: Low Risk

  • The PR appears safe to merge; the change preserves the existing notice-display condition while simplifying its syntax.

Assessed commit: 098c33c3baaf

@KooshaPari
KooshaPari merged commit 1262747 into master Oct 15, 2026
6 checks passed
KooshaPari pushed a commit that referenced this pull request Oct 15, 2026
…-size ratchet defense)

tx-agent:     jcode
tx-task:      B.8.85
tx-parent:    1262747
tx-validated: cargo-check (0 errors, 16.49s incremental), 3-restore_session-tests (PASS 6.26s), git-verify (fast-forward 0 conflicts)
tx-scope:     docs/sessions/2026-10-12-cleanup-and-release/01_AUDIT.md
tx-intent:    Record B.8.85 — peer-orchestrator merged PR #78 (let-chain refactor for ui_inline_interactive.rs, defends check_code_size_budget.py) during B.8.84 finalization. PR #79 was merged to a different base (revert/pr-33-merge, KCode decollision, out of orchestrator scope). Fast-forwarded local master to 1262747 with 0 conflicts. Discovered 13 open PRs in operator's fork; 2 MERGEABLE+ready (PR #34 decollide-r2, PR #25 codex-poke) but not merged in B.8.85 because operator's 'proc' signal was scoped to the 3 PRs I had on radar. New standing memory: peer-orchestrator can move origin/master while orchestrator is working; always git fetch origin master before any push/merge, reconcile via git merge --ff-only (safe) or git reset --hard + re-merge (when local commits need rebase).
@kilo-code-bot

kilo-code-bot Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (1 file)
  • crates/jcode-tui/src/tui/ui_inline_interactive.rs

Reviewed by free · Input: 91.9K · Output: 1.4K · Cached: 82.1K

KooshaPari pushed a commit that referenced this pull request Oct 15, 2026
Format drift was reintroduced by PRs #76/#77/#78/#80 after the
B.8.84 fmt cleanup (PR #75). cargo fmt --check was dirty on 11 files
(15 drift points; some multi-line collapsed). Master CI had not run
since 2026-10-14T10:20:15Z, so the drift went undetected for 35+ hours.

This is the prerequisite for P7 release (v0.96.0-k1.0.0) per the
audit plan: 'After fmt-cleanup merges' (B.8.6).

Verified:
  - cargo check --workspace: 0 errors, 0 warnings
  - cargo fmt --check: clean
  - 3/3 restore_session tests pass

Closes the cargo fmt gate failure surfaced by B.8.87 recon.

tx-agent:     jcode
tx-validated: cargo-check
tx-task:      p7-release-prereq
tx-scope:     crates/jcode-app-core/build.rs crates/jcode-app-core/src/tool/bash.rs
              crates/jcode-app-core/src/tool/discover.rs crates/jcode-base/src/provider_activity_oauth.rs
              crates/jcode-command-risk/src/heredoc.rs crates/jcode-command-risk/src/redirection.rs
              crates/jcode-provider-grok-build-runtime/src/bin/fake_acp.rs
              crates/jcode-provider-openai/src/stream.rs crates/jcode-sdk/src/auth.rs
              crates/jcode-tui/src/tui/app/auth_account_picker.rs
              crates/jcode-tui/src/tui/ui_inline_interactive.rs
tx-intent:    Clean cargo fmt drift on master to unblock P7 release
@KooshaPari
KooshaPari deleted the fix/inline-size branch November 27, 2026 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants