Merge pull request #169 from NeuralNomadsAI/codenomad/issue-136

feat(ui): unify picker Tab/Enter/Shift+Enter and allow directory attachments
This commit is contained in:
Shantur Rathore
2026-02-16 09:00:22 +00:00
committed by GitHub
8 changed files with 358 additions and 101 deletions

View File

@@ -140,8 +140,11 @@ async function sendMessage(
const display: string | undefined = att.display
const value: unknown = source.value
const isPastedPlaceholder = typeof display === "string" && /^pasted #\d+/.test(display)
const isPathPlaceholder = typeof display === "string" && /^path:/.test(display)
if (isPastedPlaceholder || typeof value !== "string") {
// Skip path: attachments from being sent as separate parts (content is already in prompt)
// Skip pasted placeholders too (already resolved in prompt)
if (isPastedPlaceholder || isPathPlaceholder || typeof value !== "string") {
continue
}