Skip to content

Open app links in the Opensteer browser, fix Load newer, and add a live turn line - #735

Open
timjang3 wants to merge 3 commits into
mainfrom
batch/overnight-app-links-transcript-live-line
Open

timjang3 wants to merge 3 commits into
mainfrom
batch/overnight-app-links-transcript-live-line

Conversation

@timjang3

Copy link
Copy Markdown
Collaborator

Three finished, reviewed fixes from overnight, shipped together so main runs CI once and releases once. Each part is its own commit on the branch.

1. App links open as Opensteer browser tabs (web, desktop, phone)

  • A link clicked inside an app opens as a tab in the Opensteer browser, in the same profile chat links use. This happens when Opensteer can tell the click was in that app.
  • Opensteer asks first ("This app wants to open … · Open") when it can't tell. That covers keyboard activation, a click within 5 s of another Opensteer click, two apps on screen, and a second page opened by the same click. Only a click on Opensteer's own Open button counts.
  • An app that tries to open a page while nobody is pressing anything gets nothing.
  • Ways out to the normal browser:
    • Web: ⌘-click or middle-click.
    • Desktop: a new "Open Link in Default Browser" item in the right-click menu.
    • Phone: the opened tab's menu.
  • Sign-in popups an app opens by name and size work as before.
  • Settings plugin pages open links in the system browser.
  • Main files: packages/shared/src/appFrame.ts, apps/web/src/components/apps/app-links.ts, apps/web/src/components/apps/app-frame.tsx, apps/desktop/src/app/electron-window.ts, apps/mobile/src/thread/app-frame.tsx.
  • Known gaps:
    • Android still sends a page change an app triggers by script to the system browser, as before.
    • Phone popups were not tested on a device.
    • Firefox was not tested.

2. "Load newer" reaches the latest message

  • Root cause: the phone keeps at most 250 transcript items. Every page it loaded dropped rows from the other end, and mobile loaded earlier history on any drag near the top. Together these sent the reader back to the same screen.
  • Loading a page never drops anything. The 250 limit now applies only to messages arriving live. A reader following live drops older rows; a reader scrolled up keeps everything loaded.
  • Earlier and newer loads run independently, and a page that no longer lines up with the window is discarded.
  • Run records travel with every page. This adds an optional runs field on pages and Host snapshots; it passes the wire-compatibility check and older Hosts leave it out.
  • The reading position survives reconnects. The reading-position and following callbacks are now registered per view (view-registry.ts).
  • Request links make one read around the request's answer.
  • Web shows "Back to latest" next to "Load newer".

3. A live turn line above the composer

  • Every task thread now shows a live line above the composer while a run is under way, on web, desktop and mobile.
  • It shows what the agent is doing now, or between steps the step it last finished. It also says how fresh that is and how long the run has gone.
  • With nothing running, it turns amber after 2 min and red after 10 min. It never warns while a step runs, while the run waits on the user, or while the client is disconnected.
  • Whether a run is under way comes from the Host's run queue, not from the transcript.
  • The running turn's header becomes "Steps", and the old "Working…" indicator only shows before a run exists.

How the three fit together

Parts 2 and 3 edit the same seven files (agent-activity-model.ts, agent-activity.tsx, thread-view.tsx, thread-pane.tsx, client.ts, scoped-thread-reader.ts and a web test). They applied with no conflicts, and I checked the result for logic conflicts:

  • The live line reads turn.run when it is loaded and falls back to the run queue. Part 2's per-page runs field makes that record available more often.
  • The live line, "Back to latest" and the reading-position changes are separate parts of the thread view.

Verification

  • Each part was reviewed to a SHIP verdict by GPT 6.2 Sol in its own thread: 3 rounds, 11 rounds and 2 rounds.
  • On the combined branch, pnpm check:changed passed. It covers typecheck, lint, formatting and the selected unit and integration tests.
  • Not tested: a real iPhone or simulator run, and a full desktop click-through.

🤖 Generated with Claude Code

@vercel

vercel Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
opensteer-marketing Ready Ready Preview Nov 24, 2026 12:17pm UTC

Request Review

@greptile-apps

greptile-apps Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 4/5

[High impact] The PR changes link routing and task-thread behavior across web, desktop, and mobile.

The PR appears safe to merge, with a non-blocking false idle warning when reading older steps.

Findings

  1. P2 Busy tasks look stopped ▶

Summary

This PR routes app links through Opensteer's browser, keeps explicitly loaded transcript pages, and adds a live task line above the composer.

  • Links from apps open in Opensteer’s browser when a person follows them.
  • Transcript readers can load more history without losing rows they already have.
  • Task threads show a live line for the run’s current work.

Acknowledged limits from timjang3: Android script-driven navigation still opens the system browser as before; phone popups and Firefox were not tested; real-device mobile testing and a full desktop click-through remain untested.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  Queue[Host run queue] --> Line[Live task line]
  History[Loaded history] --> Groups[Grouped transcript]
  Groups --> Line
  Streams[New streamed thoughts and replies] --> Gate{At latest?}
  Gate -->|Yes| Groups
  Gate -->|No| Hidden[Hidden from live task line]
Loading

Reviews (1) · Last reviewed commit: "feat(thread): pin a live turn line above..." · Reviewed by Greptile

@timjang3
timjang3 force-pushed the batch/overnight-app-links-transcript-live-line branch from 4f949b8 to d5d34b1 Compare November 24, 2026 12:16

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant