# APP-4889 - fixed-height expandable toasts with 3-active cap

APP-4889 - fixed-height expandable toasts with 3-active cap is a Claude Code subagent specifying toast UI limits for Warp. It caps active toasts at three and makes long messages expandable.

- subagent · `type=agent` · Claude Code, Codex, Cursor · ★ 720 repo stars
- Author: dominikmartn
- License: AGPL-3.0 · policy=link-only · description only; the file stays with the author
- Updated: 2026-11-10
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/agents/app-4889-fixed-height-expandable-toasts-with-3-active-cap

## What it does

The subagent guides the implementation of toast UI constraints in the `warpdotdev/warp` Rust desktop application. It updates `DismissibleToastStack` to cap active toasts at three items, evicting the oldest entry whenever a new notification arrives. If an evicted ephemeral toast has a running timer, that abort handle cancels immediately.

Toasts receive a bounded collapsed height clamped to roughly two wrapped lines via `ConstrainedBox`. Messages exceeding this threshold show a focusable toggle labeled "Show more" or "Show less" for screen readers. Short messages omit the toggle entirely. Each toast tracks its expansion state independently.

Changes apply directly to `app/src/view_components/dismissible_toast.rs`, updating both `toast_stack` and `update_toast_stack` in the workspace. The neighboring `AgentToastStack` component remains untouched.

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/agents/APP-4889---fixed-height-expandable-toasts-with-3-active-cap.md` — For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

### Codex

**Manually: put the files in place**
- File: `.codex/agents/APP-4889---fixed-height-expandable-toasts-with-3-active-cap.toml` — Codex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/

### Cursor

**Manually: put the files in place**
- File: `.cursor/agents/APP-4889---fixed-height-expandable-toasts-with-3-active-cap.md` — Cursor also reads .claude/agents/

## When to use it
- Cap active Warp toast notifications to at most three
- Clamp collapsed toast height for long error messages
- Provide accessible show-more toggles for truncated toasts
- Evict oldest notifications during error floods

## Example prompts
- Implement the APP-4889 toast specification in `DismissibleToastStack`
- Cap active toasts at three inside `app/src/view_components/dismissible_toast.rs`
- Add expandable message toggles to Warp dismissible toasts per APP-4889

## Similar
- [ask-sonner](https://affpapa.org/en/nevibecode/skills/ask-sonner.md) — skill · 191600 installs
- [makepad-2.0-app-structure](https://affpapa.org/en/nevibecode/skills/makepad-20-app-structure.md) — skill · ★ 754 repo stars
- [syncfusion-react-notifications](https://affpapa.org/en/nevibecode/skills/syncfusion-react-notifications.md) — skill · 690 installs
- [notifications-toasts](https://affpapa.org/en/nevibecode/skills/notifications-toasts.md) — skill · 634 installs
- [feedback-patterns](https://affpapa.org/en/nevibecode/skills/feedback-patterns.md) — skill · 2500 installs
- [makepad-2.0-design-judgment](https://affpapa.org/en/nevibecode/skills/makepad-20-design-judgment.md) — skill · ★ 754 repo stars

From the same set: [dominikmartn/harp](https://affpapa.org/en/nevibecode/by/dominikmartn/harp.md) — 62 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
