Repository navigation
Description
Bug: saving skill labels silently drops every entry after the eighth
Suggested severity: P3.
The skill editor accepts a ninth comma-separated label, enables Save and reports success, but sends only the first eight. The label is silently discarded before the native API can report its real count limit.
Reproduction
- Open an editable skill and enter
label-1, label-2, label-3, label-4, label-5, label-6, label-7, label-8, label-9in Labels. - Save. No count-validation error is shown and the request contains only labels 1–8.
- Read the skill through the native endpoint: only the first eight are stored, despite the successful save.
The existing hint says Comma-separated, up to 8. The issue is silent removal of entered text, not the limit itself. Expected: stop or flag extra labels and let the user choose which eight to keep; do not acknowledge an over-limit draft after silently changing its meaning.
Controls: with the same nine-label draft, an injected write refusal retains all nine in the field and leaves the native stored labels unchanged. Retrying after recovery receives native success but stores eight because the client has truncated its request. A direct native PUT carrying the same valid description/body and all nine labels returns 400 with a labels-specific limit reason.
Root and acceptance
parseLabelsInput slices the normalized array to eight before SkillDetailPane sends it. The shared native schema already validates .max(MAX_SKILL_LABELS).
- Validate the count in the form using the shared cap, with a translated field error; retain the complete draft.
- Save exactly the selected/entered valid labels and keep eight-label saves working.
- Never claim all changes were saved while dropping extra labels silently.
Source:
Deduplication
No equivalent skill label-truncation report found in the full-body corpus. #1943 concerns when validation first appears, #1944 toast structure, and #3642 the post-save blank editor. This candidate concerns the submitted/persisted label set regardless of that display defect. Full-body searches covered all 1,065 all-state issues in issues-final.json, the 102 baseline records and the accepted additional-finding ledger. Manual and repository debt registers contain no equivalent accepted gap. See dedup-final.json.
Evidence and limits
Executed editors.probe.test.tsx with vitest.config.ts: six observation/control cases passed. Evidence is retained in component-probe.log and component-observations.json under the global tale-1000-additional/editors-next notes directory. These assertions verify the observed defects and controls; they are not a claim that the product passed these behaviors.
The real skill components, React Query, skill hooks, adapter registry, HTTP client and i18n providers run in jsdom. Read/save cases call the actual existing localhost:3078 app routes, authenticated as the local synthetic audit owner, on a newly created owned skill. The fixture is created by a native skill PUT; text assets are placed only inside that new fixture's bundle. The fetch dispatcher accepts only that skill's detail, assets and write URLs. Explicit faults are 503 reads or a 403 write; all other skill responses come from the native local backend. The session-presence hook, empty team directory and toast sink are mocked. The normal repository jsdom setup mocks layout observers, scrolling, matchMedia and canvas. No browser-layout, mobile, hardware screen-reader, provider, tool execution or production claim is made.
Source is 480ee6a3e6d33c3414a2c0f8a52fded1ddc4ca2d. Compared with fetched main 300bcf076ac9d629518c108c363130fcc733a6b9: the detail, metadata, icon and bundle-tree components are byte-identical. The asset-viewer diff changes gutter/highlight styling, not the read-error branch. No repository source changed.
Replay (from the detached audit worktree's platform directory):
/Users/yannick/.npm/_npx/22f2fe8d8bc13000/node_modules/.bin/bun x vitest run --config /Users/yannick/.codex/notes/tale-1000-additional/editors-next/vitest.config.ts --reporter verboseThe existing synthetic fixture is retained; seed-native.py always creates a new unique skill if a separate replay fixture is needed. No resets are performed.
Independent parent verification
The parent read the implicated source, independently ran the six actual-component/native HTTP observations and controls (6/6 passed), and checked full matched bodies in a fresh 1,065-issue all-state corpus plus the baseline and accepted ledger. Parent evidence: editors-next/parent-replay.log, parent-component-observations.json, and parent-dedup-bodies.md. No hardware screen reader or fresh browser interaction is claimed.
Activity