Skip to content

fix(app): restore recently-used models, project labels, and session folding in sidebar#1

Closed
OpenCodeEngineer wants to merge 1679 commits into
devfrom
fix/recent-models-and-labels
Closed

fix(app): restore recently-used models, project labels, and session folding in sidebar#1
OpenCodeEngineer wants to merge 1679 commits into
devfrom
fix/recent-models-and-labels

Conversation

@OpenCodeEngineer
Copy link
Copy Markdown
Owner

Summary

Restores three webapp features lost during the rebase on upstream/dev:

1. Recently Used Models in Model Picker

  • Adds a Recently Used group at the top of the model picker dialog
  • Uses discriminated keys to avoid duplicate conflicts

2. Project Labels in Recent Sessions Sidebar

  • Shows project/workspace prefix labels under session titles

3. Collapsible Parent/Child Session Tree

  • Sessions with subagents render nested with depth-based indentation
  • Chevron toggle to collapse/expand child sessions
  • Session hover preview cards with MessageNav

Also adds FORK.md documenting fork-specific features and rebase survival checklist.

Files Changed (9)

  • dialog-select-model.tsx — Recently used models group
  • sidebar-items.tsx — Full SessionItem rewrite with children, hover preview, prefix
  • sidebar-recent.tsx — Passes children/lookup/prefixes/popover to SessionItem
  • sidebar-project.tsx — childMapByParent, setHoverSession, nav props
  • sidebar-workspace.tsx — childMapByParent, workspaceKey, hover props
  • sidebar-shell.tsx — renderRecentTile now required, moved before projects
  • layout.tsx — hoverSession state, recentMode, updated context types
  • helpers.ts — Added childMapByParent(), workspaceKey()
  • FORK.md — Fork feature documentation

Testing

  • bun typecheck passes
  • ✅ 2617 tests pass (6 pre-existing failures unrelated)

Fixes dzianisv#189

OpeOginni and others added 30 commits May 3, 2026 13:20
Adds a WWW-Authenticate challenge for unauthorized experimental HttpApi UI fallback responses so browsers open the Basic Auth prompt when a server password is configured.
…o#25600)

Co-authored-by: Shoubhit Dash <shoubhit2005@gmail.com>
…anifest assets (anomalyco#25698)

Co-authored-by: Kit Langton <kit.langton@gmail.com>
kitlangton and others added 25 commits May 9, 2026 00:00
Port cleanly-compatible fork features onto upstream/dev base:

App UI:
- Saved prompt suggestions component
- Recent sessions sidebar with hierarchy view
- Auto-review model selection utility
- Recent session organization utility

Backend:
- Edge TTS synthesis module (node-edge-tts)
- TTS HTTP route (/tts/edge)
- Session auto-resume module

Import paths updated for upstream (@opencode-ai/core/util/).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- encode recent sidebar session slugs with workspace directory
- trim/validate TTS input and reject whitespace-only payloads
- route /tts through HttpApi backend in server handler
- clean up generated TTS temp directories recursively
- add whitespace route coverage test
- update handoff.md progress

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- add serve-autoresume effect to recover interrupted/unanswered sessions
- run per-session resume inside InstanceStore context
- provide WorkspaceRef when present and skip busy sessions
- start worker in serve command via background scoped fiber
- update handoff.md with current state and next steps

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- move /tts/edge into Effect HttpApi global routes + handlers
- remove createHttpApi Hono bypass that caused OpenAPI parity drift
- exclude /tts/* from injected instance query params in public OpenAPI transform
- update handoff.md with regression/fix progress

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- log TTS HttpApi parity fix commit and test outcomes
- mark auto-review todo complete with app test coverage
- record remaining full-suite failures for next triage

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- note full-suite failures confirmed on upstream/dev as environment-related
- document models snapshot artifact and safe.bareRepository test impacts
- mark failure triage complete in handoff plan

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…olding in sidebar

Restore features lost during rebase on upstream/dev:

- Recently Used models group in model picker dialog
- Project/workspace prefix labels in recent sessions sidebar
- Collapsible parent/child session tree with depth indentation
- Session hover preview cards with MessageNav
- workspaceKey helper replacing pathKey for directory normalization
- childMapByParent helper for building session parent-child maps

Also adds FORK.md documenting fork-specific features and rebase
survival checklist to prevent future feature loss.

Fixes anomalyco#189

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • PR description is missing required template sections. Please use the PR template.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@github-actions
Copy link
Copy Markdown

This pull request has been automatically closed.

@github-actions github-actions Bot closed this May 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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