Repository navigation
Conversation
Removed outdated features from planned expansions section.
A WebP with the animation flag and a single frame produced no texture at all. Decode drops frame 0 when the first-frame decode says the file isn't animated (so a GIF or APNG that turns out static isn't uploaded twice), but the file still went down the streaming path, which appends only frames after frame 0 and then closes a page that was never made. The speaker's sprite then never arrived: strict sequencing held every message using it for the full 10 s, and each re-ask decoded the file again for nothing. Seen with Patty Thompson's "(a)/embarrassed" on miku.pizza. The stream now runs only when frame 0 went out as its first chunk; otherwise the file decodes as a still. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Settings > General > Wardrobe gets "Click: Selects / Wears". With Wears, one click on a character does what double-click does: switch to it when its slot is free, else wear it as an iniswap. Only the first click of a same-spot streak wears, so a double-click out of habit doesn't wear the character a second time, which would turn the switch into an iniswap. The hint shown with nothing selected follows the setting. Off by default; stored as wardrobeSingleClick. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The wait gate asked for a message's needs when it armed and again only once its current blocker settled. A missing warning dropped on the way (the warning hand-off drops when full) left that blocker unsettled, so nothing asked again and the message waited out the whole limit, 10 s under strict sequencing. The hold now builds a fresh list and asks again once a second; asking for something already known missing sends its warning again, which settles it. A held tick stays allocation-free in between. Co-Authored-By: Claude Opus 5.5 <[email protected]>
A theme without courtroom_design.ini drew "Drag to pan · scroll to zoom" over its own "no courtroom_design.ini" notice, four pixels apart. With no design there is nothing to pan, so the notice now shows alone. Fixes #153 Co-Authored-By: Claude Opus 5.5 <[email protected]>
The effects dropdown copied each icon into its whole row cell, so square art came out stretched to the cell's 23x28. AO2's QIcon keeps the aspect ratio. The icon is now fitted inside the cell and centred, through the preview window's fit helper, which takes a box and is exported for it. Fixes #77 Co-Authored-By: Claude Opus 5.5 <[email protected]>
The preview drew a sprite with whatever filter its texture had: the default until the sprite had been on stage, where the courtroom sets the char.ini filter. A pixel-art character previewed smooth until it was sent. The preview now applies the courtroom's rule for the previewed character (user setting, then char.ini scaling, then point-sampled when enlarged), so emote and portrait previews match the stage from the first frame. Effect and background previews keep the filter they have. Fixes #88 Co-Authored-By: Claude Opus 5.5 <[email protected]>
The SFX Browser takes the screen like the Wardrobe, Jukebox and Background picker, but it was missing from the popups that hide the Extras box, so the box opened over the browser it had just launched. It is now in that set: the box hides while the browser is open and returns when it closes, as with the other three. Fixes #32 Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Music view, the Areas view and the player list open one shared menu, and the music and roster blocks showed in all three: the player list offered fade-in and loop, the music list offered roster refresh and follow. The menu now remembers which view opened it and shows only that view's block, and a divider no longer opens the menu. Fixes #85 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Salanto
force-pushed
the
v2.2.0-devel
branch
from
November 15, 2026 17:33
eccf547 to
4636201
Compare
AO2 suppresses a blankpost when it repeats the previous blankpost from the same speaker. Match that in both the active and parked-tab IC logs while still delivering every blankpost to the courtroom for its emote change. The folded entry carries the queue weight so ghost text stays paired with the play queue. Refs #64
Picks up the aolib fix that serializes jsonschema.Compiler, preventing concurrent map read/write fatals when multiple sessions validate their first JSON packets.
The test build's notes list the bug fixes on v2.1.1-devel: the one-frame animated WebP, the held message that asks again, folded blankposts, the sprite preview's scaling (#88), effect icon shape (#77), the SFX Browser in front of the Extras box (#32), each list's own ⋮ menu (#85), the theme fit preview's hint (#153), the aolib crash fix and the one-click Wardrobe setting. The shipped-changelog test now pins the newest entry and allows a pre-release header. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The expanded lobby description drew its links as plain text and then listed them again underneath. The OOC log's link walker now has no font of its own (wrappedLinkSpans), so the lobby uses it too: links show in the accent colour in place, underline on hover and open on click. A link the wrap ends with an ellipsis still opens the whole address. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The IC log, both OOC logs and the notebook stopped before a row that would cross the list's bottom edge, though the clip already cuts it, so the last line vanished early while the top edge showed its half row. Co-Authored-By: Claude Opus 5.5 <[email protected]>
ResolveRawLayered and ResolveRawFull walked the server's format list through cache, folders and web per URL, so a PNG character in a mounted folder was missed on a host whose extensions.json lists only WebP. They now share resolveIn, in the live chain's order: memory and disk cache, then the folders in every format, then the web. A folder hit teaches the host no format. Plan: the CodeQL item is done; no alert is open. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Each store had its own debounce timer and its own temp-file-and-rename copy, and prefs had a fourth. internal/saver holds both: Changed schedules one write a delay after the first change (a burst no longer pushes it back), Flush and Close write now, Discard drops a waiting write, and WriteFile is the one atomic replace. The stores embed the saver; prefs writes through WriteFile. learned.json is next to use it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Until the startup walk landed, the disk index answered no for every file, so anything asked for in that window was downloaded again though it sat in the cache. Before the first scan the disk source now answers unknown for a file it hasn't indexed, so a disk worker tries it before the web. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The media system relearned every host's formats each session, and its winner table (the file each key was last found as) started empty, so the first messages on a host without extensions.json paid the full format walk again. media.Remember and media.Recall copy both tables out of and into a Manager and its CandidateBuilder on the Manager's goroutine; Manager.Call waits for that from another goroutine. The assets bridge reads learned.json on a disk worker at start, schedules a save on each find, and writes it on close before the media system stops. A write before the file is read is refused, so an early find can't replace it with one session's worth. Saved counts are halved on load, so a host that changes formats is relearned within a few sessions; at most 256 origins are kept. The saver now writes on Close only when something changed, so an idle session doesn't rewrite the file, and Discard forgets the unsaved change. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…rides The old resolver kept a second learned table in prefs that only archive, export and replay read, and Settings -> Formats edited per-server pins, an auto-detect toggle, per-type orders and fallback chains that live play has ignored since it moved to the media system. Removed: assets.Resolver and its manifest seeding, prefs.LearnedFormats, the format override settings (assetTypes, extProfiles, formatAutoDetect, globalFallbacksEnabled) with no migration, the Formats tab, and the learned formats Export/Import buttons. Old prefs files drop those keys on their next save. The raw walks (archive, export, content report) ask the media builder for their candidates and teach it what they find; a replay archive's recorded formats go in through AllowFormats. extensions.json is always read on connect; the official vanilla server, which publishes none, gets its built-in list through AllowManifest. Settings -> Cache -> Learned formats counts, clears and fixes from learned.json, as does the factory reset. Goldens regenerated by name with the removed keys gone; the frozen SHA constants were updated to match. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Its numbers came from another machine and Go version and had drifted, including rows for benchmarks that no longer exist. The gates it described are enforced by tests; a change is measured by running the benchmarks on the commit before it and after it, side by side. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… goroutine At the cap (16,384 winners) learned.json was 3.3 MB: every winner wrote its whole key with field names and its host's URL twice. Version 2 groups formats and winners by host, writes each winner as one line with the path relative to its host and the file as just its extension when the key's own name won, and gzips the JSON: about 148 KB at the cap. A binary encoding of the old layout measured only 34% smaller, and of the new one 4% smaller than JSON, so the layout carries the saving. Decompression stops at 64 MB. Version 1 files are ignored. Remember now only copies the two tables (about 0.3 ms on the media goroutine at the cap, from 0.6 ms); Memory.Learned builds the lines and EncodeLearned gzips on the saver's goroutine. Loading mirrors it: DecodeLearned and Learned.Memory parse on a disk worker, and Recall takes the parsed winners whole when the session has none yet. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…#68, #53) #68: CT's third field marks a line the server itself sent ("1"); AO2 colours that sender's name with server_chatlog_sender_color and a player's with ms_chatlog_sender_color (courtroom.cpp:1921). EventOOC now carries the flag from aolib's IsFromServer or the legacy wire, each OOC entry keeps it beside its speaker, and a server line's name draws in the theme's server colour on its canvas, else the accent. A player's name takes the theme's player colour when per-speaker colours are off. Unknown values count as a player rather than AO2's black. Both theme colours go through the same contrast guard as other theme inks, measured against the OOC log's backdrop. A logNameInk value replaces the nameOn/sat/val arguments at every log row. #53: OOC rows no longer hang under their first row. AO2's server log is plain text laid out as the server wrote it; the indent suited the IC log only. The OOC wrap uses the full width and oocWrapCont is gone. Co-Authored-By: Claude Opus 5.5 <[email protected]>
AO2 hides emote_left on the first page and emote_right on the last (emotes.cpp:110-147). Both the themed grid and the classic "<"/">" drew them always, as buttons that did nothing at the ends. Co-Authored-By: Claude Opus 5.5 <[email protected]>
readWinner read every number with strconv.Atoi and range-checked the byte-sized ones through an array before converting them to uint8, which CodeQL can't follow (go/incorrect-integer-conversion, 4 alerts on PR #146). Place, Kind, Class and Tag now parse with strconv.ParseUint at 8 bits, so a value past 255 fails the parse and the line is skipped. A negative size or an out-of-range tag joins the damaged-line test. Co-Authored-By: Claude Opus 5.5 <[email protected]>
BenchmarkBuildCandidates_Learned went with the old resolver (9efae11), so check-bench.sh failed on "no result" in the Linux tests job. The cache-hit and render-frame gates stay. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… page
The background and evidence pickers parsed host folder listings in ui; the
parser moves to media for character mapping, and the pickers use it from
there. ParseListing also reports whether the page is a listing at all: it
must link to its parent folder ("../" on nginx and Caddy, "Parent
Directory" on Apache), so an index page or a soft 404 never reads as an
empty folder.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…uest On a host without extensions.json most cold requests were misses: every bare-named sprite was first asked as "(a)X" in all six formats. The first sprite or emote button asked of a character now lists its folder in the background, five deep and at most 128 listings, on its origin and each extra host. RemoteSource answers a file its folder's listing leaves out, or a folder its parent's listing leaves out, as absent with no request; names match whatever their case, as a case-insensitive host serves any. Only a real listing is trusted. A 404 folder proves nothing; a 403, or a page with no parent link, keeps the host on the per-file search for the session. Character-select icons never trigger a walk, so a roster isn't mapped. Maps are kept in learned.json (512 most recent, folder listings shared rather than copied on the media goroutine) and walked again on use after seven days; Retry missing drops them. Measured on the headless scenario (60 sprites, half bare-named, 30 ms a request): a cold session went from 241 requests in 7.4 s to 121 plus 20 listings in 3.7 s, and new characters on a known host likewise. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The bridge's image format handed the bytes to the decoder's own goroutines and held a Compute worker waiting for them, and decoded pages went to the render thread through a 64-slot channel outside the media system, which saw the request as ready the moment the decode was handed off. Images now decode on the Compute worker that holds the request and need the main thread: the pump takes them with TakeResults and finishes each request after its upload. A request can deliver several results: Format.Decode gets a page callback, so an animation's opening frames and streamed chunks reach the pump as early pages of the same request, in order, and TakeResults says which result is final. A Delivered hook wakes the frame loop after each result is queued. The decoder is no longer a pool (DecoderPool becomes Decoder): no goroutines, no job queue, no Close; its crash guard moved into Decode. A fetch that fails at the network stage is counted in ManagerStats.Failed instead of travelling to the pump as a transient decode error. Co-Authored-By: Claude Opus 5.5 <[email protected]>
At most two animated decodes run at once. The gate woke every waiter with a broadcast and let them race for its lock, so arrival order was lost and a short blink loop could wait behind a 331-frame animation that came later. Waiters now queue, and each freed slot goes to the longest waiter; a raised limit still lets waiters in at once. Measured with 14 official-server APNGs asked for at once (5 runs, 60 Hz frame loop): median first frame 49 ms in the previous client (8 decoder threads), 65-82 ms after decodes moved onto the Compute pool (45c41073), and 16-17 ms with the ordered gate. At 3 or 9 sprites at once all builds were already one frame. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The courtroom holds a *media.Manager and asks for ChainKey(base, type) with its alternate names; scenery pinning goes through a one-method interface. The per-request work the bridge did around each ask moves into media hooks: Skip (a texture already uploaded or a key that failed), Asked (start character mapping), MissingAgain (warn on a repeat ask while missing), and a Refused() counter. assets exports ChainKey and ExactKey for callers. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Images declared no memory claim, so the media system's claim limit never applied: decodes ran far ahead of the upload pump (about one animated sprite per frame) and every decoded frame waited in the pump's carry. bridgeImage now measures a decode from the file header (canvas bytes times frames, capped at the animated budget; PNG/APNG, GIF, JPEG, WebP, AVIF) and the bridge sets a 64 MiB claim limit. Requests for the current message still pass it. Headless burst of 112 animated sprites from the official vanilla base: peak live heap ~950 MiB -> ~220 MiB, heap left after the burst ~700 MiB -> 31-56 MiB. The burst finishes in 2.2 s instead of 1.6 s, since a 331-frame preanim waits for the queue to empty before it decodes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The pixel pool rounded every frame up to a size class (a 256x192 frame took 256 KiB for 192 KiB of pixels) and sync.Pool kept freed buffers alive through a collection. With background decodes bounded by the claim limit there is little churn left for it to save, so frames are now plain exact-size allocations and Release only drops the references. kettek/apng's DecodeAll inflates every frame before returning, so a full-frame APNG briefly held twice its decoded size. The client now reads the chunks once and inflates each frame through image/png right before compositing it. Output is identical to the library's on all 14 official vanilla APNGs (pixels, delays, downscaled and first-frame-only); the library stays as a test dependency for encoding fixtures. Headless burst of 112 animated sprites: peak live heap ~220 -> ~155 MiB, heap left after it ~85 -> 18 MiB, 2.2 s -> 2.0 s. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Every remaining request in ui and render is media.Get with a key from assets.ChainKey, ExactKey or RawKey; network.PriorityHigh/Low became media.Now/Later. assets.Manager loses Prefetch, PrefetchChain, PrefetchSticky (unused), PrefetchExact and PrefetchRaw, the bridge loses its ask helpers, and network.Priority has no users left and is deleted. The empty-name guard those methods carried moves into media.Get: a key with no path names no file, so it comes back Missing and asks nothing. The synchronous ResolveRaw* lookups used by scene export and the content job stay until the bridge is deleted. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Groundwork for streaming music. Open returns once the host answers 200 and hands the body over as it arrives; it is cut when it stops sending for 30 s, never for taking long, so a long track on a slow host keeps going. ReadRange fetches one span, or reports ErrNoRanges when the host sends the whole file. Both keep Fetch's 404 cache, backoff and header deadline: the request start, status check and refusal are now shared helpers that fetchAttempt uses too. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Groundwork for streaming music. PartialFile creates a .tmp file under <root>/partial for a download to write into as it arrives (prune and Relocate already skip .tmp files); Adopt queues the finished file to the writer goroutine, which renames it into place, or copies it when the cache moved drives meanwhile. The writer empties the partial folder at open, so a download a crash cut short never lingers. Path exposes where a URL's copy lives, for a reader that opens the file itself. The download goroutine writes its own partial file; that is not on the render, image decode or resolver paths hard rule 2 protects, and the single writer still owns every change to finished blobs. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The writer goroutine emptied the partial folder when it started, which races a download begun right after NewDiskCache returns: on Linux and macOS the removal deletes the file the download is writing (Windows refuses to delete an open file, which hid it). The leftovers are now removed in NewDiskCache, before anyone can ask for a partial file. Caught by the partial-file tests on the Linux and macOS CI runners. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Four 2048x2048 background decodes run on the one Compute worker left for background work on a two-core runner, which under the race detector took about 8 s on the Linux and macOS runners, past the shared 5 s wait. The test now waits up to a minute; waitWithin takes the limit, and waitUntil keeps the usual one. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Music started only once its whole file had downloaded, then played from a copy held in memory (a 28 MB track sat in the heap). Now no track is held whole in memory, and a new one starts within moments. - media: KindStream keys (music) open a Stream instead of reading bytes. The disk cache and the player's folders open the file in place (a .zip entry is read into memory); the web downloads into a partial file with the file's last 64 KiB fetched by range, as decoders read a file's end when they open it (an Opus file's length, an MP3's tags). Reads wait for bytes not yet arrived; without range support they wait for the download, as before. A finished download is adopted by the disk cache, copied with a streamed copy when Windows won't rename the open file. At most four downloads run at once. - mix: a Decoder over a Go reader (SDL_IOStream callbacks), an SDL audio stream, and a track fed from one. SDL documents these calls as safe from any thread; SDL3_mixer ends a stream track that runs dry, so the player restarts it. - render: a complete file plays through SDL3_mixer by path, as before. A track still downloading, or held in memory, is decoded on its own goroutine into the music track's audio stream, about 2 s ahead of playback; each loop reopens the decoder, so loops stay gapless, and sidecar loop points apply at the next chunk. A download that falls behind pauses only the music, never blips or sound effects. A crossfade starts once the new song does, so a slow first download leaves no gap. The clock knows a streamed song's length after its first full pass. The decoder goroutine reads the partial or cached file from disk; it is not on the render, image decode or resolver paths hard rule 2 protects. Tried in the client on miku.pizza: ten tracks switched about once a second with crossfades, each starting at once; 12 finished downloads landed in the disk cache; heap 56 MiB against about 140 MiB before. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Theater mode was a legacy borderless, stage-only view that bypassed the normal and theme layouts. Remove its App state, hotkey, toolbox chip, menu and palette rows, Esc handling, layout gates, tests and docs. Closes #97
First step of deleting the bridge. assets.Raw reads a complete URL as a raw media key, and assets.Resolve finds a base name as a chain on a raw key, saying which URL answered and whether the player's folders held it; they replace FetchRaw (14 call sites) and ResolveRawLayered/Full (scene archive, content report). The second lookup path inside assets.Manager (resolveIn, cachedRaw, remoteRaw) is gone, so everything follows the one order: memory, disk cache, folders in every format, web, whose hits teach the host's format through the Found hook as before. media gains what that needs: Load is Get plus Wait for callers off the main thread (the old Load had no callers), Asset.Hit names the file and source that answered, and the Unlisted flag also asks the web for the formats the host's list leaves out, which the content report's full lookup relied on. Asset.Wait also returns ErrStopped when the media system stops: a char.ini load still in flight when a tab closed would otherwise have waited forever, where the old path ended on the network's own timeouts. The race test run caught it as leaked goroutines. A test that compared allocation counts as a stand-in for "a memory hit never reads the folders" now counts folder reads instead. Co-Authored-By: Claude Opus 5.5 <[email protected]>
With a partner on stage, hold-previous kept whatever a layer last drew. After a paired speaker swap that was the partner, so a cold sprite drew the partner in its slot as well. A layer now holds a different character only while one character is on stage; the same character's previous sprite still bridges a load. A sprite whose bytes arrived but decoded to nothing was never counted as missing: the message waited out strict sequencing's 10 s and the stage then fell back to hold-previous. The pump now raises the missing-asset warning for it, so the message starts and the placeholder draws. Reported with Patty Thompson's one-frame animated "(a)embarrassed" paired with Chihiro Nanami and Dorothy; 3dae85e fixed that file's decode. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The log's word wrap folds whitespace (strings.Fields), but the colour offsets counted the unfolded text. The timestamp's two-space gap became one, so with timestamps on every colour started one letter late and ran one letter long; each wrapped row added the space it broke at, and a double space or newline in the message shifted everything after it. A styled entry is now folded first, with its colour runs kept in step, and each row is found in the folded text. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Wardrobe drew every panel, row, field, button and checkbox with fixed rounded corners whatever the chrome shape. Its radii now go through wardRad, which is 0 under Sharp (also the default); round icons (the check disc, colour swatches, status dot, iniswap tag) stay round. Ctx.sharp replaces the three copies of the Sharp-or-unset check. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Salanto
force-pushed
the
v2.2.0-devel
branch
from
November 21, 2026 00:42
4636201 to
ea2e8d9
Compare
This branch has not been deployed
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.
Replaces #146, which GitHub closed when its branch was renamed from devel-v2.2.0 to v2.2.0-devel.
First fixes on the way to v2.2.0.
server_chatlog_sender_color, else the accent; players usems_chatlog_sender_colorwhen per-speaker colours are off.learned.json(about 148 KB at the cap); the disk cache is asked before the web until its startup scan lands. A sprite seen before costs one request even after the disk cache dropped it (241 → 60 requests in the headless benchmark).extensions.jsonis always read.internal/saver: one background file writer for the jukebox, notebook, wardrobe andlearned.json.Fixes #134
Fixes #116
Fixes #90
Fixes #53
Fixes #61
Fixes #68