Skip to content

A local-first multi-agent app development platform, built on PenguinHarness

4.2 KB
Raw Blame

The standalone Trace page is gone; a Trace is read where it was produced

  • Date: 2026-08-25
  • Type: feature
  • Scope: web, docs
  • PR: #462

中文版

Keeping one entry point for reading a Trace removed the three in-app links to /traces and left the page itself in place, reachable by URL. It is now removed outright: reading a Trace happens in a conversation's Trace panel, which is the only way in.

Details

  • The /traces route and page are deleted, along with the Trace-file tree that only it rendered (its lazy per-Agent loading, its Workspace/Agent grouping toggle, and its own group paging). An existing /traces?sessionId=… link no longer resolves.
  • Importing a Trace moved to System settings → General, below the language and currency preferences — the one capability that lived nowhere else. Choose the destination Project and Agent, then pick a .jsonl file; the pick is the confirmation, and the toast names where it landed.
  • Both halves of the destination are picked, where the old dialog asked only for the Agent. The endpoint is per-Agent because a Trace file's own session_meta cannot name a local Agent — its agent_state path belongs to the machine that exported it. The Project is asked for because the settings dialog does not show which one is open, every other row in it belonging to the account or the server; inheriting it silently would land an import in whichever Project the sidebar happened to have selected. A Trace can therefore also be imported into a Project other than the open one — the conversation list refreshes only when the destination IS the open one, since that is the only list on screen.
  • An imported Trace now becomes a listed conversation. The import registered the Trace file and nothing else, so the imported Session existed only on disk: the conversation list is served from the sessions table, and the row appeared only with "show CLI sessions" on — the filter for Sessions this server never created, which an explicitly imported file is not. The import now indexes the Session too (client: web), carrying the model reference, Workspace and title from the file's own session_meta, so it shows up in the sidebar as soon as the list refreshes.
  • A duplicate session id is rejected across the whole install, not just the receiving Agent. A session id is the identity everywhere — the sessions table keys on it, the frontend dedupes rows by it, /chat/:sessionId routes by it — so importing the same Trace under a second Agent used to "succeed" into a Session nothing could own: no row could sit beside the existing one, and the list folded the two into one conversation, leaving that group's count one above the rows it could ever show. It is now a 409 trace_session_exists, as it always was within one Agent.
  • Exporting is unchanged and stays with the file it downloads: the Trace panel's export link on the selected file.
  • The panel itself is untouched — same file view, performance timeline and event list, scoped to the open conversation.
  • The server's Trace APIs are unchanged, the per-Agent listing endpoint included: it is documented surface, and only the Web App's use of it went away.
  • Select now forwards aria-label to its trigger, the way a native select honours one — the settings row's Agent picker carries its name there, since the row's own label names the action rather than the control.

Existing data

Traces imported before this change carry no Session row, so this change did not put them in the conversation list. It offered no migration, because none was possible on its own — a Trace with no Session row is indistinguishable from a CLI-created one, and adopting every such Session would have promoted genuine CLI Sessions along with them. Deleting the Trace file and importing it again was the way to pull an old import into the list. The boot-time adoption sweep added later in this release (backward compatibility) then adopted every Trace carrying no Session row — old imports and genuine CLI Sessions alike — as a client: "cli" row.