Repository navigation
fix(ci): restore master CI - fmt, header auth fixture, clippy debt, ratchets, vacuous test (fixes #662, #654, #659) - #663
Conversation
Greptile SummaryThis PR restores CI coverage and fixes several tests and login feedback paths. The main changes are:
Confidence Score: 5/5Safe to merge with minimal risk. The changes are mostly CI hardening, test fixes, fixture cleanup, and small login feedback updates. No new functional issues were identified in the changed code. Files Needing Attention: No files require special attention.
What T-Rex did
|
| Filename | Overview |
|---|---|
| .github/workflows/ci.yml | Adds CI prerequisites and targeted cohorts for module resolution, secret input, embedding stability, and TUI copy-badge coverage. |
| scripts/check_module_files.py | Adds a fast tracked-Rust-file scanner that reports unresolved mod x; declarations before rustfmt. |
| scripts/check_warning_budget.sh | Switches warning counting from missing rg to grep and validates cargo availability. |
| crates/jcode-base/src/secret_input.rs | Adds masked raw-mode feedback for secret entry while preserving non-TTY fallback behavior. |
| crates/jcode-base/src/secret_input_pty_tests.rs | Adds Unix PTY tests for masked secret input, hidden secret text, and backspace handling. |
| src/cli/login.rs | Integrates existing-key notices and extracted local endpoint next-step hints into the OpenAI-compatible login flow. |
| src/cli/login/existing_key_notice.rs | Adds testable notice generation for already-configured OpenAI-compatible API keys. |
| crates/jcode-tui/src/tui/app/tests/reasoning_region.rs | Pins reasoning display mode in the burst pacing test so it exercises the intended buffer path. |
| crates/jcode-tui/src/tui/app/tests/support_failover/part_01.rs | Invalidates config cache around temp-home tests and adds auto-poke config default coverage. |
| crates/jcode-embedding/src/lib.rs | Adds a numeric-stability regression test for MiniLM embeddings when the local model is present. |
Sequence Diagram
sequenceDiagram
participant Dev as Developer/CI
participant Guard as Guardrails
participant Mod as check_module_files.py
participant Fmt as cargo fmt
participant Tests as Targeted cohorts
participant Ratchets as Budget ratchets
Dev->>Guard: Run CI / scripts/check_guardrails.sh
Guard->>Mod: Validate tracked Rust mod declarations
Mod-->>Guard: Fail early on missing module files or OK
Guard->>Fmt: Run rustfmt after module check
Guard->>Tests: Run secret-input, embedding, TUI cohorts
Tests-->>Guard: Exercise previously skipped/vacuous paths
Guard->>Ratchets: Compare updated baselines
Ratchets-->>Dev: Report restored CI signal
Reviews (5): Last reviewed commit: "ci: run the embedding numeric cohort, an..." | Re-trigger Greptile
|
Merge-order note for the two open PRs blocked behind this one. Both #643 and #656 have been failing
Suggested order: land this PR, rebase #643 (clean), then rebase #656 and resolve those two files. Worth flagging that #656 also carries fixes for #655, #651, #648, #649 and #653, so it is the larger backlog unblock. It has an unskipped-tests change to --- — Jcode agent (automated triage), on behalf of @1jehuang |
7b3122c to
4d8c563
Compare
|
Rebased onto current master, and the scope grew. Master moved while this was open (v0.62.1 plus the perf work and f59d040), and two of those commits left master red on their own. Both are fixed here, since this PR's purpose is a green master. 1. 2. The code-size baseline went stale again. Also folded in: the #664 session-level testMy separate #664 PR (#665) is closed as superseded by f59d040, which is the better implementation because it also covers headless
Mutation-checked: restoring the hardcoded That also brought over a latent leak in Finally, the Re-verified after the rebase
Merge order
--- — Jcode agent (automated triage), on behalf of @1jehuang |
83c60ec to
53d3d5a
Compare
|
Heads up:
// crates/jcode-desktop2/src/main.rs
mod frame_meter; // line 20
mod scroll_profile; // line 38Neither So the This one cannot be fixed by deleting the
The two files do exist, untracked, in the so What is needed from you: commit those two files together with the matching Worth noting for the recurrence, since this is the third instance ( Separately, #663 is otherwise green and now also fixes two things master broke while this PR was open:
--- — Jcode agent (automated triage), on behalf of @1jehuang |
|
Added a gate for the recurrence itself, since this is now the third time an incomplete commit has taken master's Format job down.
Ordering is the point. Today the failure surfaces as: which reads like a formatting problem, and because rustfmt is step 1 of both Being straight about its scope. This catches the Verified it discriminates rather than just matching everything:
Both #663 and #666 are rebased onto current master and pushed. They will still show the One more thing worth doing separately: --- — Jcode agent (automated triage), on behalf of @1jehuang |
|
Follow-up with the exact fix, since I verified it rather than guessing. Master is still red on the missing The third is the one that makes it work. Master's state.render(&scene, &mut self.frame_meter)and the uncommitted - pub fn render(&mut self, scene: &Scene) -> Result<()> {
+ pub fn render(&mut self, scene: &Scene, meter: &mut crate::frame_meter::FrameMeter) -> Result<()> {So master's call sites for
I did not commit them. Once it does, #663 and #666 need no changes; they are already rebased and will just need a re-run. --- — Jcode agent (automated triage), on behalf of @1jehuang |
`cargo clippy --all-targets --all-features -- -D warnings` failed on Linux, so every PR inherited a red Quality Guardrails job. Each finding is fixed at its cause rather than silenced: - `pinned_todos_payload` / `_rendered_hash` / `_checked_at` were orphaned by 96a4a91, which removed the trait override while the fields and their two initializers stayed behind. Nothing read them; removed. - `current_full_frame_redraw_reason` was written so `draw-stats` could explain an ongoing repaint (the existing `last_full_frame_reason` is sticky and keeps naming an expired notice), but was never wired to a call site. Now reported as `redraw_schedule.full_frame_reason`, which is what its doc comment describes. - The four copy-badge tests held a `CapturedClipboard` guard and never asserted through it, so `clipboard` was unused and `CapturedClipboard::text` was dead. They asserted only the badge and the status notice, both of which render fine when the clipboard write silently fails. They now assert the copied text, and `text()` has a real consumer. - `subscribe_nudge`'s test module sat before `impl App`, and asserted `0 + week`. Module moved to the end of the file; the duplicated fresh-state assertion replaced with the clock-skew case (`now < last_shown`) that the `saturating_sub` actually exists to handle. - Two `StatusSpinnerRenderer` fixtures assigned fields after `Default::default()`; now struct literals. Verified: `cargo clippy --all-targets --all-features -- -D warnings` clean across the workspace, `cargo fmt --all --check` clean, and the touched cohorts (`copy_badge_shortcut` 6, `subscribe_nudge::` 6, `run_shell::` 12) all pass. refs #662
…mt gate The code-size, test-size, panic-prone, and swallowed-error ratchets all failed on master. None of the growth is from this branch: CI stopped at the rustfmt step, so nothing enforced these budgets while desktop2, agent_tests, and the mermaid runtime grew past their baselines. Rebaselined last and separately so it can be dropped in favour of refactoring the specific offenders without disturbing the fmt/clippy/test fixes. Verified: `scripts/check_guardrails.sh --skip-slow` passes every gate. refs #662
…ey exists Two things made `jcode login --provider gemini-api` look like an indefinite hang when the reporter had already written `gemini.env` by hand (#660): 1. `read_secret_line` enables raw mode, which suppresses the terminal's own echo, and then echoed nothing itself. Typing or pasting a key produced no screen change at all, which is indistinguishable from a hung process. It now echoes one `*` per character and erases one on backspace, so the secret still never appears on screen but the prompt is visibly alive. 2. The prompt was identical whether or not jcode had already resolved a key, so someone who had saved one could not tell it was picked up. Login now names the existing credential and its source (the environment variable when it wins, otherwise the resolved config-file path), and says how to keep it. Both helpers live in small new modules rather than in `login.rs`, which is already over the code-size budget: `login.rs` shrinks by 12 lines here, and the extracted `next_step` hint gained tests it never had. Verified: 5 new tests (3 for the notice, 2 for the hint) pass, and the notice tests fail as expected when the lookup is stubbed back to its pre-fix "always None" behaviour. `cli::login::` cohort 18 passed. fmt, clippy, code-size and swallowed-error ratchets all clean. Note for the reporter: the underlying request still needs a live key to confirm end-to-end, which I could not do here. refs #660
CI skipped `copy_badge_shortcut` because those tests hit the real OS clipboard and fail with "Failed to copy" on a hosted runner. Four of the six already held a `CapturedClipboard` guard that routes writes into an in-process sink; they simply never asserted through it, which is what left `clipboard` unused and is fixed in the previous commit. The remaining two (`accepts_alt_uppercase_encoding`, `test_remote_...`) had no guard at all, so they really did reach for the OS clipboard. They now install the sink and assert the copied code block too. With all six isolated from the OS, the skip is no longer needed and the cohort becomes a real gate rather than a permanently-excluded one. These are the tests most worth running here, since they are the only coverage of copy-badge -> clipboard end to end. Verified with `DISPLAY`, `WAYLAND_DISPLAY` and `XDG_SESSION_TYPE` unset: 6 passed, 0 failed. The two color-dependent render tests remain skipped. refs #592, refs #662
…ly runs `remote_reasoning_delta_burst_is_paced_not_dumped` fails on unmodified master, which #662's inventory did not list, so the Linux --lib gate would still have been red after the fmt and fixture fixes. The reasoning-display default became `Off` in 166e444. With it off the `ReasoningDelta` is dropped rather than buffered, so `stream_buffer` is empty and "remainder must stay buffered for paced reveal" fails. 742a3dc wrapped the sibling reasoning-region tests in `with_reasoning_current_home` for exactly this reason but missed this one; it is now pinned the same way. Worth noting this test was not merely failing, it was untestable: under `Off` no pacing code runs at all. I confirmed it now enforces real behaviour by replacing the per-frame reveal clamp with "reveal the whole backlog", which makes it fail as intended. It passes with the clamp restored. refs #662
…ing gate passing vacuously Two more failures that only became visible once the gates ahead of them went green. **desktop2 frame budget could not build.** The `Quality Guardrails` runner has no fontconfig, and `jcode-desktop2` pulls `yeslogic-fontconfig-sys`, whose build script panics outright when `fontconfig.pc` is missing. The step failed in the build script, never reaching a single test, which is why it passes locally. Installing `libfontconfig1-dev` fixes it; `cargo check --all-targets --all-features` in the same job depends on it too. **The warning budget has been passing vacuously.** The CI log shows `scripts/check_warning_budget.sh: line 29: rg: command not found`, immediately followed by `Warning budget OK: current=0 baseline=0`. ripgrep is not installed on the runner, and the `|| printf '0'` fallback turned the missing binary into "zero warnings", so the gate has reported success regardless of the actual count for as long as it has existed. Now uses grep, which is guaranteed present. Verified the gate detects warnings again by introducing one deliberately: `Warning budget exceeded: current=1 baseline=0`, back to `current=0` once reverted. refs #662
… ratchets Two things master needs after f59d040 and the perf work landed. f59d040 added the JCODE_AUTO_POKE env override but did not add it to CONFIG_ENV_KEYS, which is what the config cache fingerprints. The consequence is real rather than cosmetic: changing the variable would not invalidate the cached config, so the new setting could be ignored until something else forced a reload. The repo already guards against exactly this, and config_env_fingerprint_tracks_every_apply_env_override_var currently fails on master with: CONFIG_ENV_KEYS must include every env var read by Config::apply_env_overrides; missing: ["JCODE_AUTO_POKE"] The code-size baseline is also stale again: tui/mod.rs, tui/ui.rs, ui_frame_metrics.rs, config-types/lib.rs and run_shell.rs all grew past their entries. None of that growth is from this branch. Refreshed so the gate reflects current master. Verified: config_env_fingerprint cohort 2 passed, and scripts/check_guardrails.sh --skip-slow passes every gate.
…uced f59d040 wired `features.auto_poke` into the session default but tested only the config layer: that the field parses and that `JCODE_AUTO_POKE` overrides it. Neither test would have failed if `auto_poke_incomplete_todos` had stayed the hardcoded `true`, which was the actual bug. Adds the two behavioural assertions: - a new session starts with auto-poke off when the config says so, and `/poke on` still re-enables it for that session - auto-poke stays on when nothing disables it Mutation-checked: restoring the hardcoded `true` makes the first one fail. Also fixes a latent state leak found while writing them. `with_temp_jcode_home` restored `JCODE_HOME` but never invalidated the config cache, which is keyed by content rather than by home, so a config written inside a temp home stayed cached for later tests in the same process. Writing a config in one test therefore broke `test_auto_poke_starts_enabled_by_default` and `test_ctrl_p_toggles_auto_poke_locally` under the suite while both passed in isolation. Now invalidated on entry and exit (refs #596). The `StatusSpinnerRenderer` fixture becomes a struct update rather than an exhaustive literal. The exhaustive form broke as soon as master added `seeded_animation_area`, and a fixture that asserts one field should not have to name every other one. Verified: auto-poke cohort 22 passed, `run_shell::` 12 passed, full `jcode-tui --lib` with CI's skip flags 2061 passed / 0 failed, and `check_guardrails.sh --skip-slow` passes with no baseline changes. refs #664
Master's perf and tui-style work moved ui_header.rs, dispatch.rs, ui_frame_metrics.rs and several others past their entries. None of this growth is from this branch; refreshed so the gates reflect current master.
2211592 declared `mod frame_meter;` and `mod scroll_profile;` in jcode-desktop2/src/main.rs without committing either file. That breaks rustfmt, not just the build: cargo fmt --all -- --check Error writing files: failed to resolve mod `frame_meter`: crates/jcode-desktop2/src/frame_meter.rs does not exist rustfmt is the first step of both the Format job and Quality Guardrails, so this single omission makes every later gate unreachable, and it reports as a formatting problem rather than a missing file. That is the same masking dynamic #662 was filed about. scripts/check_module_files.py checks that every `mod x;` in a tracked .rs file resolves, handling `#[path = "..."]` overrides, inline `mod x { ... }` blocks, and the non-mod.rs parent directory form. It runs in ~0.6s with no compiler, and is wired in ahead of rustfmt in both CI and check_guardrails.sh so the real cause is named first. Scope, stated honestly: this catches the mod-without-file variant only. The earlier instances of the same habit (c9ccb4f, 96a4a91) landed a reference without its definition, which only the compiler can catch, and I verified this script reports clean on both. The variant it does catch is the one worth a dedicated gate, because it is the one that disables rustfmt and therefore hides everything else. Verified: fails on current master naming both missing files, and reports clean on the v0.62.1 release commit (d9ca2a2) and on c9ccb4f / 96a4a91~1, so it is not merely matching everything. refs #662
d21aef8 to
37ba228
Compare
|
Third independent break on master, same class again. Both PRs are rebased onto New: Reproduced on clean For the record, I checked whether my Still open: the desktop2 modules. Unchanged from my previous comment. The verified fix is three files ( Current state of master's gates:
#663 fixes the fourth and adds a gate that names the first two in 0.6s instead of as a confusing rustfmt error. The first three are other people's in-flight work, and I have deliberately not committed any of it. This is now four instances of the same root cause in roughly a day ( --- — Jcode agent (automated triage), on behalf of @1jehuang |
Self-inflicted, and exactly the failure mode this branch complains about. My rustfmt commit was assembled from a worktree containing other agents' in-flight changes, so three files came along at a pre-refactor state and silently reverted work that was already on master: - crates/jcode-base/src/skill.rs: reverted 2689134 / 1c45117, removing `mod invocation;` and re-inlining an older `SkillInvocation`. That deleted the module containing `SkillRegistry::resolve_invocation`, so `jcode-app-core` failed to compile with E0599 at turn_execution.rs:777 and took the whole `jcode-tui --lib` gate with it. I initially misread this as a master regression; it was mine. - crates/jcode-base/src/soft_interrupt_store_tests.rs: dropped the `images` field from three `SoftInterruptMessage` literals, reverting part of 627. - crates/jcode-base/src/config.rs: master had already added `JCODE_AUTO_POKE` to CONFIG_ENV_KEYS in sorted position, so my copy both duplicated it and put it out of order. All three restored to origin/master verbatim. `config_env_fingerprint` passes on master's own version, so my earlier commit for it was redundant. Verified: `cargo check -p jcode-app-core` and `-p jcode-base` clean, and `config_env_fingerprint` cohort 2 passed.
|
Correction: one of the two failures I attributed to master was mine. Retracting that part of my previous comment. I claimed My rustfmt commit was assembled from a worktree holding other agents' in-flight changes, so three files came along at a pre-refactor state and silently reverted work already on master:
All three are restored to This is uncomfortable to write given that I filed the recurrence report and added a gate for it, but it is the honest record: I made the same mistake in the same session, and my own gate did not catch it because this variant is a stale-content revert, not a What is genuinely still master's, verified on clean
That last one is new since my earlier comment and I have not touched it: Both PRs are rebased on |
…trings Two verification gaps in my own earlier #660 work, both now closed with tests that fail against the pre-fix code. **The masking had no test at all.** `read_secret_line` only masks on the raw-mode TTY branch, and under `cargo test` stdin is not a terminal, so every possible unit test takes the piped-line fallback and exercises none of the fix. The reporter's symptom, a prompt that looks like a hung process, was therefore still unguarded. `secret_input_pty_tests.rs` opens a real pty, forks a child running the function, types at it, and asserts on the bytes the terminal received: - one mask per typed character, and the secret itself never on screen - the value the caller receives is unchanged by the masking - backspace erases one mask and one character Mutation-verified: removing the echo makes it fail with `expected one mask per typed char, got 0 for 15 chars; echoed=""`, which is exactly what the reporter saw. I also confirmed this end to end against the built binary: the pre-fix build echoes zero bytes while typing a key, the fixed build echoes 15 masks for 15 characters and still saves the key intact. **The extracted next-step hints were not pinned.** Moving them into `next_step` turned three `eprintln!` literals into `\`-continued strings, and a continuation swallows the following indentation, so a mis-indented line changes user-facing text while still compiling. Added an exact-equality test against the strings `login.rs` printed before extraction, so the refactor is provably invisible to users. Unix-only (`openpty`/`fork`); `libc` was already a dependency of this crate. refs #660
|
Closing the verification loop properly, since my earlier "verified" claims were thinner than they sounded. Two gaps found and fixed, plus an audit that shows this branch is now clean. The #660 masking had no test at all
Fixed with a real pty test (
The test also pins that the secret never reaches the screen, that masking does not corrupt the returned value, and that backspace erases one mask and one character. The extracted hint strings were not pinnedMoving the next-step hints into Audit of this branch against masterAfter the stale-file incident I checked mechanically rather than by eye. Every line this branch removes from master (210 of them): all accounted for as intentional edits or baseline numbers. Every baseline I raised (26 code-size, 5 test-size), attributed by comparing against master's own file lengths:
So no gate was loosened to accommodate my own code. Current test state
Still red and still not mine, both reproduced on clean --- — Jcode agent (automated triage), on behalf of @1jehuang |
…not silently change it Persisted memory embeddings are keyed by model_id, which stays all-MiniLM-L6-v2 across a tract bump, so memory.rs's model-mismatch check cannot notice a numeric change. A new inference engine producing different vectors would silently make every stored embedding incomparable with freshly computed ones, and the existing related-beats-unrelated assertion would not detect it: both vectors would move together. Pins the first 8 of 384 dimensions plus dimensionality and L2 norm, with a 1e-4 tolerance. Reference values captured on tract 0.21.10. refs #657
…ot hang The #660 masking test I just added would have been compiled and never executed. `jcode-base --lib` is not run anywhere on Linux CI: the only jcode-base test invocation in the whole workflow is a Windows-only `power_inhibit::tests::windows_` filter. So the test guarding the reported symptom had exactly the looks-green-but-never-ran shape as the warning budget (rg not installed) and the macOS stdin detector in #651. Adds a cohort that runs `-p jcode-base --lib secret_input` on every non-Windows runner. Windows is excluded because these tests fork a pty; the masking code path is unix-gated raw-mode terminal handling anyway. Also bounds the forked child with `alarm(20)`. These tests exist because `read_secret_line` can appear to hang, and a test for a hang that itself hangs would burn a 300s CI timeout instead of failing. Verified by making the function block forever behind an env guard: with the alarm the cohort fails in 6s with `got 0 for 15 chars` rather than hanging. Verified: cohort passes with no controlling terminal (`setsid`), under the default parallel harness, and 10 consecutive runs with no flakes. clippy `-D warnings` clean on jcode-base; test-size, panic and swallowed-error ratchets all unchanged. `ci.yml` parses as valid YAML. refs #660, refs #662
The numeric-stability test from the previous commit is the only thing that can catch an inference-engine upgrade changing embeddings, since persisted memories are keyed by model_id and that does not change across a tract bump (#657). But jcode-embedding tests are not run anywhere in this workflow, and the test skips itself when the model is absent, so it would never have executed. Adds a Linux cohort that fetches the model (~87MB, two curls) and runs '-p jcode-embedding --lib'. The important part is the skip guard. A skipped test still reports 'ok', so the harness result alone cannot distinguish 'verified' from 'silently did nothing' - the same trap as the warning budget and the macOS stdin detector. Verified against a model-less HOME: the 'ok' grep still passes there (so it proves only that the binary built and ran), while the 'skip: MiniLM model not present' guard correctly fails the step. Comments now say which check proves what. refs #657, refs #662
|
Caught the obvious failure mode in my own two new tests before claiming them: neither would have run in CI. Both new tests were dead on arrival
That is the identical shape as the two vacuous gates this PR already fixes: the warning budget passing because Both now have cohorts. Details worth flagging: The pty cohort is bounded so it cannot hang. These tests exist because The embedding cohort fetches the model and asserts it did not skip. ~87MB, two curls. The guard matters more than the run, and I checked which half actually proves anything against a model-less
The comments in Robustness checks on the pty cohort
Both branches are rebased and pushed. On #666 the embedding cohort passes on tract 0.23.4 against reference values pinned on 0.21.10, so the numeric guarantee is now enforced by CI rather than by my say-so. --- — Jcode agent (automated triage), on behalf of @1jehuang |
Restores CI on
master, which has been fully red. Fixes #662, #654, #659, and part of #660.masterfailed at rustfmt, and because that is the first step in both theFormatjob andQuality Guardrails, every later gate was masked. Each one turned out to be independently broken. Verified locally by running CI's own commands.cargo fmt --all --checkrejectedapp/observe.rs,tui/mod.rs,tui/ui.rs(landed unformatted inad7093d/8fc780b)header_provider_auth_tag_prefers_app_resolved_credential_over_envbuilt aProviderAuthwithhas_oauth + has_api_keybutstate: NotConfigured, which no real probe can return, so the render path filtered it and produced the nothing-configured fallbackAvailable, matching the passing test beside it-D warningsfailed on Linuxremote_reasoning_delta_burst_is_paced_not_dumpedfails on unmodifiedmaster, and was not in #662's inventoryClippy findings fixed at cause, not silenced
pinned_todos_payload/_rendered_hash/_checked_atwere orphaned by96a4a91ed, which removed the trait override while the fields and both initializers stayed. Nothing read them; removed.current_full_frame_redraw_reasonhad no call site, but its doc comment explains exactly why it exists:last_full_frame_reasonis sticky and keeps reporting a notice that expired minutes ago, making "why is this repainting at 60fps" undiagnosable. Now surfaced asredraw_schedule.full_frame_reasonindraw-stats, which is what it was written for.CapturedClipboardguard and never asserted through it, leavingclipboardunused andCapturedClipboard::textdead. They asserted only the badge and status notice, both of which render fine when the clipboard write silently fails. They now assert the copied text.subscribe_nudge's test module sat beforeimpl App, and asserted0 + week. Module moved to the end; the duplicated fresh-state assertion replaced with the clock-skew case (now < last_shown) that thesaturating_subexists to handle.StatusSpinnerRendererfixtures assigned fields afterDefault::default(); now struct literals.Two things beyond the reported scope
The copy-badge cohort is no longer skipped in CI. It was excluded as needing a real desktop clipboard. Once all six tests route through the in-process sink (two had no guard at all and did reach for the OS clipboard), they pass headless, verified with
DISPLAY,WAYLAND_DISPLAYandXDG_SESSION_TYPEunset. These were the tests most worth running, being the only end-to-end coverage of copy-badge to clipboard.A test that was passing vacuously now enforces its invariant.
remote_reasoning_delta_burst_is_paced_not_dumpedfails on master because the reasoning-display default becameOffin166e4444f: with it off the delta is dropped rather than buffered, so no pacing code runs at all.742a3dc42pinned the sibling tests viawith_reasoning_current_homebut missed this one. I confirmed the pinned test enforces real behavior by replacing the per-frame reveal clamp with "reveal the whole backlog", which makes it fail as intended.Also included
effiecenttypo inREADME.mdis fixed here.jcode loginenables raw mode, which suppresses the terminal's echo, and then echoed nothing itself, so pasting a key produced zero screen change and looked like a hang. Now echoes*per character. Login also now reports an already-resolved key and its source, since the prompt was previously identical whether or not a credential was found. 5 new tests; the notice tests fail when the lookup is stubbed to its pre-fix behavior.login.rsshrinks by 12 lines, as it is already over the size budget, and the extractednext_stephint gained tests it never had.Verification
scripts/check_guardrails.sh(full, including slow gates): all gates pass — fmt,cargo check --all-targets --all-features, clippy-D warnings, Cargo.lock, warning budget, all six ratchets, dependency boundaries, wildcard re-exports, desktop2 frame budget,cargo machetecargo test -p jcode-tui --libwith CI's exact skip flags: 2053 passed, 0 failed (this is the gate that has been red)cargo test -p jcode-app-core --lib retention_readiness: 3 passedcli::login::cohort: 18 passedNot addressed
tract-nnefRUSTSEC-2026-0217) is deliberately untouched. It is labeledautonomous: no, and the prior investigation established the0.21.16bump is blocked bytract-data's exacthalf =2.4.1pin againstnaga'shalf ^2.5. Choosing between atract 0.23major bump, a scoped ignore, and feature-gating the embedding stack is a maintainer decision.Security preflightwill therefore still fail on this branch. Everything else in front of it is now green, so that finding is finally visible rather than masked.run "Say hello"hang is unconfirmed. I could not reproduce an indefinite hang on Linux, andrunis a different path fromlogin. I have asked the reporter for logs.--- — Jcode agent (automated triage), on behalf of @1jehuang