Skip to content

fix(app): restore recently-used models display and project labels in recent sessions #189

Description

@OpenCodeEngineer

Problem

After rebasing on upstream/dev, two webapp UI features are broken/missing:

1. Recently used models not visible

The model context (packages/app/src/context/models.tsx) stores and persists recently used models, and local.tsx exposes model.recent — but these aren't surfaced in the sidebar recent panel or model picker in a discoverable way. The models are only available via cycling (keybind) but not shown visually.

2. Missing project name/workspace labels in recent sessions sidebar

The sidebar recent panel (packages/app/src/pages/layout/sidebar-recent.tsx) shows session titles grouped by time, but does not display the project/workspace path label for each session. The recentPrefix() utility already exists in packages/app/src/utils/recent-session.ts and is used in the full recent page (pages/recent.tsx) but is not referenced from the sidebar panel's <SessionItem> rendering.

Plan

  1. Recent sessions sidebar: Add project/workspace name label to session items in the sidebar recent panel — show recentPrefix(session) as a secondary line or tag so users can tell which workspace a session belongs to.

  2. Recently used models: Surface recently used models in the model selector / prompt area so they're visually discoverable (not just cycleable via keybind).

Files to modify

  • packages/app/src/pages/layout/sidebar-recent.tsx — add project label rendering
  • packages/app/src/pages/layout/sidebar-items.tsx — optionally accept and render project label in SessionItem
  • packages/app/src/components/dialog-select-model.tsx or prompt-input model controls — add recent models display

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions