Repository navigation
docs: say the desktop app takes file jobs too, now that it does - #254
Merged
Merged
Conversation
…o stale The hand-written tool list in docs/agents.md named 22 of the 37 tools the server lists. docs/reference/mcp.md is now rendered from tools/list (names, titles, descriptions, parameters, input schemas and annotations) by scripts/mcp-reference.ts, and tests/mcp-reference.test.ts fails whenever the committed page differs from what the server generates.
… key and job in the server log
A client with jobs in flight could not change where its callbacks go without
replacing its key, which loses its earlier jobs and feed. PATCH /v1/keys/{id}
and akou keys update now replace the hosts under the keys.json lock and keep
the key, its secret and its jobs.
The server log now carries key.created, key.updated and key.revoked (with the
client's address, or keys.json for a CLI edit) and job.created beside the
existing job.done, job.failed, key.refused and webhook lines. Never the audio
or the text.
Below 1248 px the sidebar drops to 10 rem so the transcript keeps half the window next to the side pane. A page (Settings, Models, Dictation) has no side pane, yet it got the narrow sidebar too, so call titles there were cut short for nothing. A page now keeps the 13.75 rem sidebar at any width.
A backslash at the end of a description or type would have escaped the cell's closing pipe and broken the table. Cells now escape backslashes before pipes, and the escaping test covers both.
At 480 px, the shell's minimum, the full sidebar left the Models page too little room and it scrolled sideways.
The door parity test failed on the new PATCH /v1/keys/{id}: no row named it.
It reaches the CLI and the API; the Keys page and MCP do not change hosts.
…ize default, the bound address, each failed callback GET /v1/server listed the auto preset as unavailable while jobs on auto ran as fast, so a client trusting the flag hid its own default. auto now names what it resolves to and is available when that is. The route also reports server.default_diarize, the one default it left out. The startup line printed http://127.0.0.1 while the server listened on every address; it now names the address bound. A failed webhook try logged nothing until the whole schedule ran out, so an operator could not see callbacks failing. Each failed try with another to come logs webhook.retry with the event id, the try number, the status or error class and the next try's time, never the URL or the body.
…no server mode needed `akou transcribe FILE` against the desktop app exited 69 "file jobs need akou in server mode", although the models, the job Worker and the token were all there. server.enabled is about keys, bind and proxies for other machines, not about whether this akou may transcribe a file for its own user. The job service now starts in both modes and the job routes are served in both, reached with the app's token. The desktop app leaves out what server mode adds: no keys, no webhook secrets (capabilities.webhooks stays false), no remotes and no dictation lane; the model sweep stays the app's, and it now also keeps what a queued or running job needs. Keys and the OpenAI door stay server-only.
|
Warning Review limit reachedYou'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 59 minutes. View limit detailsLimit details: You’ve used the included review currently available. Review configuration: ⚙️ Run configuration
📒 Files selected for processing (3)
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. Comment |
The type column still escaped only pipes, so a backslash in an enum value could have broken the table the same way.
…s, and test the upload cap beside the real job route The app counted the job service's default recognizer as one of its own defaults, so Parakeet showed as a default model on a setup that never uses it. The upload-cap test added its stand-in job route behind the real one, which now exists in both modes.
…sing in L0 The L0 row still named the MCP reference as not generated while the TS-12 row says it is. The type column's pipe and backslash escaping had no test, so it is now pinned with an enum value holding both.
With the speech models missing the body keeps the welcome's class under a page, and the welcome's narrow rule won between 900 and 1247 px. The welcome rule now skips a page. A test opens Models over the welcome at 1024 px and checks the sidebar width, and the 1024 px test now also checks 899 px.
…s file A server that started with no keys.json took its first read of the file as the baseline, so the first key, made over HTTP or by the CLI, left no key.created line. An absent file is now a baseline with no keys. Also corrects the SV-K7 row (four routes) and names akou keys update in SV-K2.
…-5an-1-l13 [skip ci]
keys.update came in beside the PG-A7 error-code list, so it answered 404 not_found without declaring it.
…-5an-1-l13 [skip ci]
The page was generated before main gained the job tools; tests/mcp-reference.test.ts compares it with the server's tools/list.
…-5an-1-l13 [skip ci]
…-5an-1-l13 [skip ci]
…-5an-1-l13 [skip ci]
…-5an-1-l13 [skip ci]
…-5an-1-l13 [skip ci]
GeiserX
added a commit
that referenced
this pull request
Oct 3, 2026
… on a preset switch (#270) A client sending many short files paid the model load on almost every file. A Worker on any model but the default closed as soon as the queue drained. A fast job between two best jobs evicted Qwen at concurrency 1, so the next best job loaded it again. And at concurrency 2 on Metal, two best jobs stopped each other's llama-server, because each Worker's start kills whatever Metal server the shared pid file names. For a 10 to 60 second voice note the load takes longer than the decode. The fix: - **Idle period.** An idle Worker keeps its model for `server.model_idle_minutes` after its last job (new setting, default 60; 0 lets go once no queued job needs it). Then it closes and the memory comes back, with a log line `jobs: <model> unloaded after N min with no job`. This applies to the default model too, which used to stay loaded forever. A timer wakes the check; `JobService.releaseIdle()` is the check. - **Scheduling by engine.** Among queued jobs of one priority, a job on a model an idle Worker holds goes first. A job is passed over at most 8 times (`WARM_PASS_LIMIT`), so a steady stream on one model never starves another. While there is room under `server.concurrency`, a new Worker is made instead of rebuilding a warm one. - **One Metal llama-server at a time.** A job whose engine runs on a Metal llama-server waits while another such job runs, in the queue's Workers or the dictation lane's. It never starts a second server. So a dictation on a Metal llama-server now waits for a running file job on one instead of stopping its server; DICTATION.md DC-R2 says so. - **What is loaded.** `queue.loaded` on `GET /v1/server` and `/healthz` lists the recognizers a job Worker holds, so a client can batch its jobs around them. - SERVER.md SV-Q1, SV-Q2, SV-Q4 and SV-M4 rows, DICTATION.md DC-R2, configuration.md, server-hardware.md, the `GET /v1/server` doc and the OpenAPI file, and the settings pages updated; floors +8. Tests (`tests/warm-model.e2e.test.ts`, run against the fake llama-server; the first 6 fail when run over a copy of `origin/main`'s `src`, the last 2 fail with the line they cover removed): - Three best jobs in a row: one llama-server start, one `ready` log line, and `queue.loaded` is `[qwen3-asr-1.7b]` on `/v1/server` and `/healthz`. On main: 3 starts. - At 59 minutes idle the model is still loaded (positive control). At 61 minutes the Worker is gone, its llama-server has exited and the unload line is logged. The next job loads it again. - `server.model_idle_minutes: 0`: two jobs in a row, two starts. - best (running), fast, best queued: the second best runs before fast and Qwen loads once. On main the order is fast first and Qwen loads twice. - With fast queued behind 10 best jobs, fast runs after exactly 8 of them. - Concurrency 2, two best jobs on a Metal spec sharing one pid-file folder: both end done and llama-server starts once. On main it starts twice. - A dictation on a Metal spec while a file job on it runs: it stays queued although the lane has a free Worker, then both end done. Red with the Metal check removed from the lane. - The idle timer alone (`server.model_idle_minutes` 0.02, real clock, nobody calls `releaseIdle`) unloads the model. Red with the timer's callback emptied. - `models-on-demand.e2e` SV-M4 now checks that the non-default Worker stays within the idle period and is gone after it. Not done here: - akou-5an.104 also asks for a published before-and-after job time for a short voice note on an M4. I did not measure it: no idle Apple silicon machine was free for a clean before-and-after run. - akou-5an.117 closes on its second acceptance: the resident models are now on `/healthz`, and the scheduling keeps Qwen across a queued preset switch. A fast job arriving alone after the queue drained still takes the only slot at concurrency 1. - The dictation lane's idle Workers keep their models, as before. - The Metal rule looks at running jobs only. An idle Worker that holds a Metal llama-server has it stopped when a Worker in another slot or the lane starts its own (two Metal llama models, or lane and queue both on Qwen). No job fails, since that server is idle, but the next job on it pays a reload. With one Metal llama model in the catalog and the lane not on best this does not arise. - In the desktop app (PR #254), a call's Qwen final pass and a best file job do not take turns yet. This PR's rule covers job Workers only. Beads: akou-5an.104, akou-5an.114, akou-5an.117, akou-5an.107
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.
The desktop app now takes file jobs with its own token. #303 shipped that:
akou transcribe FILEandPOST /v1/jobswork against the desktop app, not only in server mode. Two docs and one test still said file jobs belong to a server.This PR began as its own implementation of desktop file jobs. #303 landed the same feature first, so that code was dropped in favour of #303's. What is left corrects the words:
docs/REQUIREMENTS.mdF1.8: a file job isPOST /v1/jobson the desktop app (with its own token) and in server mode.docs/ux/CLI.mdServer row:jobs listandtranscribework against the desktop app too.tests/remote-edges.test.ts: the "jobs list against the desktop app" case is renamed to "an akou that takes no jobs" and checks feat(asr): transcribe a file on the desktop app, fused by three engines #303's "takes no file jobs" message, since the desktop app now takes them.Beads: akou-5an.119 (delivered by #303; this PR only aligns the docs)