Repository navigation
fix: automated triage batch (563, 565, 572, 573, 577, 578) - #580
Merged
Merged
Conversation
This was referenced Jul 24, 2026
Owner
Author
|
CI note: the Verified locally for this branch specifically:
— Jcode agent (automated triage), on behalf of @1jehuang |
Owner
Author
…try tools (fixes #572)
…catalog limits reach the meter (fixes #578)
Extract Anthropic SSE response types into sse_types.rs and context-window resolution into context_window.rs so lib.rs does not grow past the oversized-file ratchet, and recover the LaTeX failure-cache mutex instead of swallowing the poisoned-lock error.
1jehuang
force-pushed
the
triage/2026-07-24-batch
branch
from
July 24, 2026 20:47
b363d2f to
32d5d78
Compare
jcode sent max_tokens=32768 for every Claude model. Opus 5, Opus 4.6-4.8, Sonnet 5/4.6, and Fable 5 all allow 128K output on the synchronous Messages API, and adaptive-thinking models spend that budget on thinking plus the visible tool call. The flat cap therefore truncated turns mid-tool-call and silently ended long agentic runs. Found while benchmarking Opus 5 on jcode bench: 4 of 23 turns ended at exactly 32768 output tokens and the agent stopped after 50 minutes of a 20-hour budget, producing only 3 grades where Opus 4.8 produced 41. JCODE_ANTHROPIC_MAX_TOKENS still overrides, and unknown/older models keep the conservative 32K budget.
… fixes - comm_format: use a probe whose byte index 500 strictly straddles a code point, so the multibyte tests fail against the old byte-slicing version. - latex_image: count real toolchain spawns via a stub that logs each invocation, asserting 50 redraws after a failure spawn it zero extra times (the actual #563 symptom). Each fix in this branch was mutation-checked: reverting the fix makes its tests fail, and restoring it makes them pass.
Intent is a property of the request, not of one todo group. Replace the
per-goal user_intention/alignment_score/objective fields with one
plan-level TodoPlan { user_intention, understands_user_intent } that
covers the whole todo list, persisted alongside todos and goals.
- goals keep only hill_climbability, feedback_loop, end_to_end_ownership
- the intent gate now fires once per write while any todo is open
- serde aliases keep older alignment_score payloads readable
- TUI card and side panel render plan intent once, above the groups
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated triage batch: five low-risk, verified fixes for open issues.
format_tools(is_oauth=true)now only advertises a curated Claude-Code builtin when its backing registry tool is actually registered, soAgent/Globare no longer advertised aftersubagent/globremoval.jcode-pdf::extract_textwrapspdf_extractincatch_unwindand returns a normal error;format_comm_context_historytruncates on char boundaries instead of byte indices.\r\n\r\nas well as\n\n, and keeps everydata:line instead of only the last one (silent content loss).k3,kimi-k3) resolves to 1,048,576 tokens globally;k3-256kto 262,144; K2 keeps 256K.context_window()to use the cache-aware lookup, so a live catalog limit for a model missing from the static override table reaches the TUI meter and compaction budget.| #563 | LaTeX render failures are remembered in a bounded negative cache, so a failing snippet no longer respawns latex/pdflatex on every redraw and freezes the TUI. |
Verification:
cargo test -p jcode-provider-anthropic8 passedcargo test -p jcode-provider-openrouter20 passedcargo test -p jcode-provider-core106 passedcargo test -p jcode-protocol74 passed,cargo test -p jcode-pdf1 passedcargo test -p jcode-tui-markdown134 passedcargo check --workspace --all-targetscleanEach fix ships a regression test. Thanks to @vietgs03, @wtry, @wiktorwiesek, @ravshansbox, and @dmt4 for the detailed reports and root-cause pointers.
— Jcode agent (automated triage), on behalf of @1jehuang