Files
OpenResearch/ui
Daniel Kim 3661374314 Composer command chips, optional paper args, drop /hf (v0.1.70) (#107)
* Composer command chips: picked slash-skills render as a removable unit

- Picking a skill (menu, typing /name<space>, or the empty-state suggest
  button) lifts the command out of the textarea into a chip; the textarea
  holds only the args, with the skill's arg hint as its placeholder.
- Backspace at position 0 (or clicking the chip) pops it back into
  editable /name args text; send() reassembles the plain wire form, so
  server-side expansion is unchanged.
- User bubbles render a leading known /command with the same chip.
- /reproduce-paper args are now optional: bare invocation tells the agent
  to infer the paper from the current repo and only ask if unidentifiable;
  arg hint is bracketed to signal optionality.
- Drop the /hf skill.
- Fix a latent IME bug: Enter during composition no longer sends.

* Review nits: rename activeSkill to pickedSkill (avoids collision with the menu's activeSkillIdx), fix stale pending-question comment

* Chip inline with the input line; paper-aware optional placeholder

- The chip and textarea now share a flex row (.composer-input), so the
  command and its arg hint read as one line, Claude-desktop style.
- When the project has an attached paper, the /reproduce-paper placeholder
  says the args are optional and names the paper it defaults to.

* Chip overlays the textarea with first-line indent so args wrap full-width

The flex-row layout squeezed wrapped args into a column beside the chip.
Instead the chip now sits absolutely on the textarea's first line, the
first line is text-indented past its measured width, and the chip rides
the textarea's scroll (clipped at the wrapper) so scrolled text is never
hidden behind it.

* Claude-style arg hints and chip semantics

- Bracket every skill's arg hint ([topic], [paper on compute], ...) to
  match the Claude-desktop placeholder convention.
- The chip is inert like inline text: pointer-events none so clicks land
  in the textarea beneath, and Backspace at the start deletes the command
  outright (args stay) instead of dissolving it into /name text.

* Hint reads [paper] on [compute] — bracket each supplied part, not the phrase

* Paper-attached hint keeps compute; extend to /paper-to-marimo

- Placeholder on paper-attached projects now reads
  '[paper — optional, defaults to <id>] on [compute]' for both
  paper-reproduction skills — only the paper part is optional; compute is
  still expected.
- Both templates and /paper-to-marimo's no_args now tell the agent to
  infer the paper from the repo when the args name none, so a
  compute-only invocation works too.

* v0.1.70
2026-07-21 15:09:26 -07:00
..
2026-07-06 20:05:41 -07:00
2026-07-06 20:05:41 -07:00
2026-07-06 20:05:41 -07:00