Skip to content

fix: restore agent traces navigation icon - #628

Merged
MrParamecium merged 8 commits into
mainfrom
feat/agent-reasoning-trace
Oct 9, 2026
Merged

MrParamecium merged 8 commits into
mainfrom
feat/agent-reasoning-trace

Conversation

@MrParamecium

Copy link
Copy Markdown
Collaborator

The Agent traces navigation item was updated to use a distinct document icon, but the admin page did not define that symbol in its local SVG sprite, so the icon rendered blank.

This PR adds the missing icon-file-text symbol and keeps it separate from the Activity waveform icon.

Validation:

  • Verified the served /admin HTML includes the symbol and the trace navigation reference.
  • Rebased on the latest main.

@vercel

vercel Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated
agentic-trading-lab Ready Ready Preview Oct 9, 2026 12:13pm UTC

@MrParamecium

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-09T11:58:44.690754Z 66ce073 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 66ce073a77

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +247 to +248
for run in run_store.list_runs(agent["agent_id"]):
trace = trace_store.get_trace_for_run(run["run_id"])

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Build activity from the durable trace store

In the production Render configuration, protocol_runs is explicitly stored in the diskless SQLite database and reset on every deploy (render.yaml:107-115), while trace_store uses durable AGENT_RUNS_DATABASE_URL Postgres (domain/traces/repository.py:359-375). Starting this projection exclusively from run_store.list_runs() therefore makes every persisted trace from a previous deploy disappear from the user's “Agents & traces” section even though it remains available in the global trace view. Merge traces queried by agent ID into the projection rather than requiring a surviving local protocol-run row.

Useful? React with 👍 / 👎.

Comment on lines +245 to +248
for agent in agent_store.list_agents(owner_user_id=user_id):
runs = []
for run in run_store.list_runs(agent["agent_id"]):
trace = trace_store.get_trace_for_run(run["run_id"])

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Paginate and batch the activity join

For an owner with a long run history, this performs an unbounded list_runs() for every agent and then a separate trace-store query for every returned run. Since the trace store is normally remote Postgres, opening this tab can generate hundreds or thousands of sequential round trips and an arbitrarily large response, eventually timing out the admin request. Add a bounded/paginated contract and fetch the matching traces in batches.

Useful? React with 👍 / 👎.

@MrParamecium

Copy link
Copy Markdown
Collaborator Author

Addressed the review findings in 518b091: user activity now reads paginated durable traces by agent IDs, with local protocol runs used only for enrichment. Added coverage for the batch query contract. Local targeted tests pass.

@MrParamecium
MrParamecium merged commit 19acc58 into main Oct 9, 2026
8 checks passed

This branch was successfully deployed

1 active deployment
Preview — 518b0913 Deployed Oct 9, 2026 by vercel[bot]
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