Skip to content

bug(ui): Create Agent dialog overflows the screen, scrolls both ways and jumps — redesign as a fixed two-pane picker #3792

Closed

Description

@trinity-ability

Summary

The Create Agent dialog does not fit a laptop screen and is hard to use. It scrolls both vertically and horizontally, its height changes as you pick options, and it asks for two names. Replace it with a fixed-size two-pane picker: sources on the left, the selected source's details and the name on the right.

Problem

Observed on a 14" MacBook in dark mode (src/frontend/src/components/CreateAgentModal.vue):

  • Two stacked vertical scrollbars. The dialog itself scrolls (max-h-[90vh] overflow-y-auto) and the template list scrolls again inside it (max-h-80).
  • Horizontal scroll. The featured template's tagline has no truncation, so a long line overflows its card and the list scrolls sideways.
  • The dialog jumps. The repository field, the import-intent picker, the agent-or-codebase question, the fork-to-own fields and the template description box each appear in the middle of the form and push everything below them down.
  • Two name fields, slug first. The permanent identifier is asked for before the friendly name, with long help text under each.

Proposed design (option A, two-pane picker)

Mockups: option A in the design review canvas (linked in the PR).

  • A fixed-size dialog (about 880×600, clamped to the viewport). Header and footer never move. Each pane scrolls on its own, vertically only.
  • Left pane: a search field over one list. Groups: Start (Blank agent, Import a GitHub repository), Featured, Local templates, GitHub templates. Long text truncates.
  • Right pane: the selected source's icon, title and description, then one Name field. The permanent ID is shown under it as a live preview (marketing-assistant) with an Edit link to override it. The display name is the typed name.
  • Runtime row (read-only): shows the template's declared runtime, or "Claude Code" for a blank agent. A picker is out of scope here (trinity-enterprise#603).
  • Source-specific options (repository, import intent, agent or codebase, fork-to-own fields) render only in the right pane, which scrolls inside itself, so nothing outside it moves.
  • The narrow-screen layout stacks the two panes; nothing scrolls horizontally.

Acceptance Criteria

  • At 1440×900 and 1280×720, light and dark, the dialog fits the viewport with no page or dialog-level scrollbar and no horizontal scroll anywhere.
  • Switching between any two sources does not change the dialog's size or move the header, footer or left list.
  • One Name field. The ID preview follows the existing sanitizer, can be overridden, and an empty or invalid name disables Create with a named reason (bug(ui): Agent name has no length ceiling, no format hint and no preview of the sanitized slug #3463).
  • Every existing create path still works with the same API payload: blank, local template, GitHub template, featured fork-to-own, custom GitHub repo with clone, copy and fork, and the agent-or-codebase choice. The post-create validation step still shows for GitHub-sourced creates.
  • Built on BaseModal, BaseInput and BaseButton, with semantic tokens only. The raw-color ratchet does not grow.
  • A mounted component test pins the payload for each path and the single-name-to-ID behaviour.

Out of scope

  • Runtime selection (trinity-enterprise#603).
  • Changing what the agent-or-codebase question offers or defaults to.

Activity

  1. added
    priority-p2
    type-bug
    theme-ui-ux
    complexity-medium
    on Oct 18, 2026
  2. vybe commented on Oct 18, 2026

    @vybe
    Contributor

    /claim

  3. added
    status-in-progress
    on Oct 18, 2026
  4. github-actions commented on Oct 18, 2026

    @github-actions

    Claimed by @vybe. Label status-in-progress added.

    Next steps:

    1. Create branch: feature/3792-<short-slug>
    2. Implement the feature
    3. Open a PR with Fixes #3792
  5. added
    status-in-dev
    and removed
    status-in-progress
    on Oct 18, 2026
  6. removed
    status-in-dev
    on Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

complexity-mediumpriority-p2theme-ui-uxtype-bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions