Repository navigation
0.22.0: include completions accepted once in either mode (#80) and a session that keeps its engine starts (#86) - #85
Merged
Conversation
…sed it The case sleeps for real (0.5 s, then 0.15 s) and checks that the kept list waits 150 ms past the engine's pace. A loaded Windows runner overshot the first sleep past that wait (main 42712814292, unit tests win32-x64 openkal), and the check then said nothing about the wait. The case now measures the time since the request and is skipped, saying so, when the runner slept past it. Co-authored-by: speak-agent <[email protected]>
Sunrisepeak
force-pushed
the
answer-routing-overslept
branch
from
November 10, 2026 00:46
65793af to
45e63ef
Compare
…gnostic-bundle's bundles A second attempt of a conformance row runs only the cases that failed (mtest run --failed); a diagnostic-bundle that passed in the first attempt does not run again, and the zip check found no bundle and failed the row. The rerun now states itself (CONFORMANCE_FAILED_ONLY), and the check requires bundles only when diagnostic-bundle ran in that attempt. Co-authored-by: speak-agent <[email protected]>
…and a Windows session keeps its engine starts (#86) - completion: an include item's replace range takes the editor's auto-paired closing quote as its insert range does (balance_for_replace at the one egress every completion answer passes); the word cache keeps no include answer (a header name is not a word its key can age); the no-engine fallback offers no identifiers on an include line. The conformance client advertises insertReplaceSupport as VS Code does, and a failed completion-item check prints the item it held. - grants: Windows names no system roots (the plan names each toolchain; a compiler named by a bare name resolves through PATH), read-only grants beneath one directory merge -- never into a volume root -- always on Windows where each costs a sandbox table slot per start, and a start refused with 'granting ... out of memory' says what spent and what restores it. Co-authored-by: speak-agent <[email protected]>
… anywhere, and a restart-loop conformance case The engine-restarts fixture caught what the bundles could not: a Linux session's eleventh start failed the same way the reporter's Windows eighth did -- the attenuating table openkal never returns a slot of is every implementation's, and a Linux box was spending eleven read-only grants a start (eight system roots, two package stores, the payload). system_roots() is now empty on every system (the plan names each toolchain; a bare compiler name resolves through PATH; mcppls.grants adds the rest), the read-only merge runs on every host, and its ancestor may be neither a volume root nor the person's home. The fixture restarts the engine eight times over and expects an answer after each. Co-authored-by: speak-agent <[email protected]>
A server patch (docs/92-release.md "Versions") moves the server past the plugin's own version; the regression asserted they were equal and failed on server 0.21.1 with the plugin at 0.21.0. It now expects what mcpp.toml names. Co-authored-by: speak-agent <[email protected]>
…is CI built" This reverts commit 21f6eaa.
…arries The zip carries the server this repository builds; a server patch moves it past the plugin's own version (docs/92-release.md), so pluginVersion was the wrong default. mcpp.toml's version is the one the payload names. Co-authored-by: speak-agent <[email protected]>
Removing them degraded a real macOS kit project: the driver finds the SDK and the system frameworks by its own convention and no command names them, so the blanket there is the only cover until the plan's 3.4 (the platform's own table) or flag-naming. Windows and Linux keep the narrowing -- their conformance suites pass without any root -- and the restart-loop fixture runs where the fix is, not on macOS. Co-authored-by: speak-agent <[email protected]>
xmake-basic reproduced it locally: scanning a toolchain's std.cc fails at features.h -- the GCC driver adds /usr/include to every compile whatever the flags say, so it is the one root a Linux start truly needs (eight became one; Windows keeps none, macOS its conventional list). xmake-basic, xmake-no- standard and mcpp-emit pass against this build, as do the restart loop and the inferred fixture; the unit suite is 615/615. Co-authored-by: speak-agent <[email protected]>
Co-authored-by: speak-agent <[email protected]>
The server fix and the plugins it ships with are one release: every component 0.22.0. Dependencies are untouched (openkal-platform 0.21.1 stays). Co-authored-by: speak-agent <[email protected]>
Sunrisepeak
force-pushed
the
answer-routing-overslept
branch
from
November 11, 2026 02:11
ca79c2f to
febc8ac
Compare
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.
Carries the two test/CI fixes below (unchanged) and the 0.22.0 release on top of them. Release plan:
.agents/docs/2026-11-11-0.22.0-release-plan.md.#80 — the include completion's second quote, the half 0.21.0 left
clangd's include item takes the closing quote an editor auto-paired in its insert range only; its replace range ended at the cursor, so an editor accepting in replace mode (VS Code's
Replace (Tab)— both reporters' editors, per their screenshots' hint bars) wrote the quote twice. Measured on the 0.21.0 payload, every include item hadinsert = [word, cursor+1)andreplace = [word, cursor); accepting the latter on#include "common/numbproduces#include "common/number-literals.hpp"", cursor between the quotes — character for character the reporter's 0.21.0 screenshots.completion::balance_for_replaceat the one egress every completion answer passes through (finish_job): where insert reaches past the cursor and replace ends at it, replace takes insert's end — both accept modes consume the editor's quote exactly once. Fresh answers and retargeted late answers alike.WordKeycarries the include line; the cache's one writer refuses it): its key ages by the file's text and cannot say when a header list changed, and a complete list is filtered client-side anyway. The late path stays on purpose — it is the engine's own answer, at mostLATE_ANSWER_KEPT(5 s) old, and what fills the popup while the engine is cold or busy.insertReplaceSupportas VS Code does (without it clangd emits a single TextEdit and the asymmetry never appears — which is also why this was only visible in real editors), and a failedcompletion-itemcheck now prints the item it held.#86 — a session ran out of engine starts (Windows and Linux)
The sandbox's "out of memory" on a grant is not memory: openkal 0.20.0 keeps a fixed table of attenuated directories and never returns a slot (
forget()keeps a root "until the program ends"), one slot per read-only grant per engine start. The reporter's Windows machine spent nine a start and the session's eighth start failed whole —granting C:/Program Files: out of memory, exactly the directory the 65th slot would have taken. The newengine-restartsconformance case then caught the same cliff on Linux during this release's own verification: eleven read-only grants a start (eight system roots, two package stores, the payload), the eleventh start failing withgranting ~/.mcpp/registry/data/xpkgs: out of memory— the table is every implementation's, not Windows' alone.C:/Program Filesand kin on Windows;/usrand seven more on a Linux box): the plan already names each toolchain (flags, the compiler's installation, the MSVC/SDK roots mcppls injects); a compiler named by a bare name resolves through PATH;mcppls.grantsadds anything a probe failed to name./,C:/) or the person's home (~/.vscodeand~/.mcppshare only~): guards the old over-16 merge lacked. A start now spends two or three slots; a session holds an order of magnitude more starts.granting … out of memorysays so in numbers (starts spent, grants each — the message was verified against a real Linux failure during verification) and names the recoveries: restart the editor, ormcppls.grants: ["all"].Tests and verification
inferredgainsC8-include-replace-takes-the-editors-quote(the reporter's exact keystrokes, assertingreplace.end == insert.end);completion-templatesandcompletion-keywordsunchanged and green.#include ", letters,render/pass/,common/numb…) — every served item balanced; on stock 0.21.0 the same steps showreplace = cursor,insert = cursor+1.mcppls-devtools check all,version --check(every component 0.22.0, one series), the settings reference and its zh-CN mirror re-rendered, CHANGELOG entry[server 0.22.0].The two original fixes of this branch (unchanged)
answer routing/where the engine answers within its budget, a kept list waits for it a little past its pacemeasures the time since the request and skips, saying so, when the runner slept past 740 ms (a loaded Windows runner overslept the check's own sleep on main's run 42712814292).mtest run --failed); the zip check requires bundles only when diagnostic-bundle ran in that attempt.Closes #80. Mitigates #86 (the durable fix is upstream; see the plan's §3.4).