mirror of
https://gitee.com/mateos/mateclaw.git
synced 2026-09-13 19:23:42 +08:00
A second POST to /reclassify on the same KB spawned an independent pass over the same pages, doubling LLM spend and racing the first pass's page-type writes. Add a per-KB in-flight guard that rejects a concurrent run with a friendly message (409 via R.fail rather than a generic 500), released in a finally once the async pass completes. Also count and broadcast per-page failures so an all-failing run is visible instead of reporting changed=0, and type the api modelId param as string|number per the snowflake ID convention. |
||
|---|---|---|
| .. | ||
| public | ||
| src | ||
| test | ||
| .npmrc | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| pnpm-lock.yaml | ||
| TEST_CASES.md | ||
| tsconfig.json | ||
| vite.config.ts | ||
| vitest.config.ts | ||
| yarn.lock | ||