Dashboard › publish › detailsFromContext missing issue guard
01a082ad-90f9-792a-9bbb-ec1cbaed60e6| Project | Hits | Last recalled |
|---|---|---|
| opencode-lore | 1 | 14h ago |
Trap: dereferencing parsePublishTitle(title).groups looks concise because workflow issue contexts normally include a valid publish title, but manual or unexpected contexts yield an opaque TypeError. Fix: detailsFromContext() must explicitly reject absent issue context and malformed titles before accessing groups, using actionable errors. Chose explicit validation over implicit dereference because callers need fail-closed, diagnosable rejection of invalid publish requests.