CodeNomad/packages
codenomadbot[bot] d15340a4b8
fix(ui): unwrap pasted placeholders in slash commands (#235)
## What
Fix slash command execution so `[pasted #N]` placeholders are resolved
before calling `session.command`, matching normal prompt send behavior.

## Why
When pasting long text into a slash command (e.g. `/some-command [pasted
#1]`), the UI previously bypassed `resolvePastedPlaceholders(...)` for
known slash commands and sent the literal placeholder text as command
arguments.

## Changes
- Resolve pasted placeholders (and other prompt placeholders handled by
`resolvePastedPlaceholders`) in slash-command arguments before
`executeCustomCommand(...)`.
- Remove *consumed* pasted-text attachments (those referenced by
placeholders in the slash-command args) so they don’t linger for the
next prompt.

Fixes #234.

## Notes
- I attempted `npm run typecheck --workspace @codenomad/ui` locally but
the workspace dependencies aren’t installed in this bot environment, so
it fails with missing-module errors. CI should validate with a full
install.

--
Yours,
[CodeNomadBot](https://github.com/NeuralNomadsAI/CodeNomad)

Co-authored-by: Shantur Rathore <i@shantur.com>
2026-03-20 22:49:24 +00:00
..
cloudflare Minium server 0.12.3 2026-03-13 20:06:41 +00:00
electron-app Release v0.12.3 2026-03-13 20:04:20 +00:00
opencode-config feat(lazy loading): Implement virtual list with virtua (#241) 2026-03-20 22:46:05 +00:00
server feat(lazy loading): Implement virtual list with virtua (#241) 2026-03-20 22:46:05 +00:00
tauri-app fix(tauri): restore external links in the folder picker (#225) 2026-03-20 22:48:29 +00:00
ui fix(ui): unwrap pasted placeholders in slash commands (#235) 2026-03-20 22:49:24 +00:00