fix(workspace): `assertOwnsWorkspace` falls back to upload-then-rollback when the server omits `ownerId`
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
Direzione di ricerca
Start in packages/opencode/src/altimate/workspace/skill-publish.ts, following publishSkill and assertOwnsWorkspace through the ownership check, upload, attach failure, and cleanup. Review the proposed GET /datamates/{id} and attach-endpoint precheck options, including compatibility with deployed backend versions. Done means ownership is resolved or clearly reported before upload when ownerId is absent, with the existing failure path covered.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
publishSkill checks workspace ownership before uploading via assertOwnsWorkspace (packages/opencode/src/altimate/workspace/skill-publish.ts). When the server's workspace listing carries no ownerId (older backend), the check is a no-op and a non-owner's publish uploads the full bundle, fails at the attach step with 404, and is cleaned up with a DELETE. Correct outcome, but check-then-upload degrades to upload-then-rollback for that case, and a failed DELETE would leave an orphaned unattached skill.
Proposed: when ownerId is absent, resolve ownership through GET /datamates/{id} (or the attach endpoint's precheck) before the upload; or surface "ownership unknown, continuing" in the report.
Found during the v0.12.0 release review (CTO persona). Deferred because: depends on which backend versions are still deployed.
🤖 Generated with Claude Code
- Lingua principale
- TypeScript
- Stelle
- 813
- Fork
- 134
- Merge medio
- 2g 5h
- PR unite (30g)
- 62
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di AltimateAI/altimate-code
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
AltimateAI/altimate-code#1323 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
AltimateAI/altimate-code#1288 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
AltimateAI/altimate-code#1285 ·
-
privacy: Altimate Base consent dialog no longer discloses persistent per-installation identifier Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
AltimateAI/altimate-code#1284 ·
-
Difficoltà 2/5 Meno di un'ora Idoneità per principianti 72/100
AltimateAI/altimate-code#1283 ·
Tutte le issue di AltimateAI/altimate-code
Issue simili
-
comp/desktop P3 type/bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
NousResearch/hermes-agent#118866 ·
-
Browser Waiting for: Product Owner
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
getsentry/sentry-javascript#24577 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
agilepathway/label-checker#640 ·
-
Plugin stuck at "loading" on DSH 0.1.6-alpha.2 — turnTail list slot registration missing options.id Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
Add 2021 Cup data to website Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
chrisparsons83/flexspotff#153 ·