mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-04 12:33:08 +00:00
A session switch or draft restore can leave undefined/null holes in the composer attachments array. AttachmentList was guarded against this in #49624, but the sibling submit path was not: submitPromptText maps the same array through attachmentDisplayText/optimisticAttachmentRef and buildContextText (a.kind / a.label / a.refText), so a hole threw "Cannot read properties of undefined (reading 'refText')" — an uncaught renderer error that blanks the chat pane and shows "Desktop app link offline". Close the whole bug class: - attachmentDisplayText / optimisticAttachmentRef no-op on a falsy attachment (shared chokepoint, also protects thread.tsx drop handler). - submitPromptText filters falsy entries from the source array, and buildContextText filters its (possibly post-sync) input before reading fields. |
||
|---|---|---|
| .. | ||
| use-context-suggestions.ts | ||
| use-cwd-actions.ts | ||
| use-hermes-config.ts | ||
| use-message-stream.ts | ||
| use-model-controls.test.tsx | ||
| use-model-controls.ts | ||
| use-preview-routing.test.tsx | ||
| use-preview-routing.ts | ||
| use-prompt-actions.test.tsx | ||
| use-prompt-actions.ts | ||
| use-route-resume.test.tsx | ||
| use-route-resume.ts | ||
| use-session-actions.test.tsx | ||
| use-session-actions.ts | ||
| use-session-state-cache.test.tsx | ||
| use-session-state-cache.ts | ||