Repository navigation
Description
Bug: failed skill and bundle-asset reads are shown as missing or empty content
Suggested severity: P2.
A settled request failure is not rendered as a recoverable failure in the skill detail or asset pane. The detail says Skill not found, and an asset becomes a blank preview with no explanation. This is one skill-reader failure-state family, not two findings.
Reproduction
- Create a synthetic skill with an instruction body and a nonempty
references/notes.txtasset. Confirm both through the native local endpoints. - For its initial detail read, return HTTP 503 for all four attempts made by the actual query hook.
- Open the skill: after retries settle, the dialog reads Skill not found. It has no Retry action.
- Restore that endpoint and reopen: the existing saved body loads.
- With the detail healthy, choose the nonempty text asset and refuse only its asset GET with 503 through all four attempts.
- After loading ends, the filename remains but the preview is empty, Copy is disabled, and no error or Retry action is rendered.
- Restore the endpoint, select SKILL.md and then the same asset: the original contents return.
Expected: keep unavailable, missing and genuinely empty states distinct. Show a translated recoverable error and retry action without implying the skill was deleted or its asset was emptied.
Controls: an actually empty asset returns native 200 and an empty preview; an actually missing asset returns native 404 and the explicit This file is no longer in the bundle message. A healthy detail/native read succeeds before the injected outage and after reopening. No server data is lost.
Root and acceptance
SkillDetailPane collapses absent query data to null and renders not-found without checking isError. SkillAssetViewer computes a non-null error but only renders the special not_found branch, then falls through to empty content for other errors.
- Handle settled query failures separately from actual 404/empty content, with EN/DE/FR feedback and a retry control.
- A successful retry restores native content without needing to close/reopen or change files.
- Do not discard an existing editable draft when a background refresh fails.
Source:
- skill-detail-pane.tsx:57
- skill-detail-pane.tsx:160
- skill-asset-viewer.tsx:109
- skill-asset-viewer.tsx:243
Deduplication
Closest report #3642 is a successful-save reset/reseed defect; no save occurs here. #2783 concerns skeleton geometry and #2785 preview typography. #3709/#3747 are different Inbox/task consumers. Full-body dedup found no skill read-failure report. 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
fix(platform): leave focus where the member moved it during a retry