Skip to content

refactor(app): drop per-message model and agent from mobile session timeline - #54775

Merged
opencode-agent[bot] merged 3 commits into
devfrom
desktop-remove-message-model
Oct 13, 2026
Merged

opencode-agent[bot] merged 3 commits into
devfrom
desktop-remove-message-model

Conversation

@opencode-agent

@opencode-agent opencode-agent Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

On mobile, the composer and the agent/model switch notices already show the current agent and model, so the timeline no longer repeats them on every message. Desktop is unchanged.

  • Mobile (max-width: 767px, the app's existing mobile breakpoint):
    • User message meta: Agent · Model · Time → Time (Pending · Time while pending)
    • Assistant response meta: Agent · Model · Duration → Duration (plus Interrupted when applicable)
  • Desktop keeps Agent · Model in both metas.
  • Agent-changed and model-switch notices are unchanged.

Testing

  • bun typecheck in packages/session-ui and packages/app
  • bun test src/timeline in packages/session-ui
  • playwright test --config playwright.components.config.ts component-tests/session-timeline-mobile.spec.ts in packages/session-ui: 5 passed. The touch timeline test now asserts the user meta is absent and the response meta omits the agent and model.
  • Checked current-session-timeline-rows--conversation (interruption scenario) in Storybook: at 1100px the metas read Build · Claude Sonnet 4 and Build · Claude Sonnet 4 · 4s; at 390px the user meta is absent and the response meta reads 4s.

Requested by: @Brendonovich (Brendan via Slack)

@opencode-agent opencode-agent Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change looks sound and does what the description says. Every reference to the removed prop, field, helper and i18n key is gone, and no other locale has that key.

On this PR, type checks pass in session-ui, app and ui. The session-ui timeline tests and the app's timeline-projection test pass. I couldn't run the Playwright component and e2e specs here because no browser is available, so CI still needs to confirm those. A before/after screenshot of a user message and an assistant reply in the timeline would help reviewers.

Public API: unchanged. These are internal props of @opencode/session-ui components and app UI copy only.

I have no concerns that would block a merge.

@opencode-agent opencode-agent Bot changed the title refactor(app): drop per-message model from session timeline refactor(app): drop per-message model and agent from session timeline Oct 12, 2026
@opencode-agent
opencode-agent Bot force-pushed the desktop-remove-message-model branch from 16d55c8 to aea4b07 Compare October 12, 2026 10:09
@opencode-agent opencode-agent Bot changed the title refactor(app): drop per-message model and agent from session timeline refactor(app): drop per-message model and agent from mobile session timeline Oct 12, 2026
@opencode-agent
opencode-agent Bot merged commit e65080d into dev Oct 13, 2026
11 of 12 checks passed
@opencode-agent
opencode-agent Bot deleted the desktop-remove-message-model branch October 13, 2026 06:10
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.

1 participant