Skip to content

apps/ui: Fix AI session site placement and restore active run state across navigation - #3476

Merged
youknowriad merged 1 commit into
trunkfrom
codex/fix-agent-site-session-mismatch
May 13, 2026
Merged

apps/ui: Fix AI session site placement and restore active run state across navigation#3476
youknowriad merged 1 commit into
trunkfrom
codex/fix-agent-site-session-mismatch

Conversation

@youknowriad

Copy link
Copy Markdown
Contributor

Summary

  • Treat CLI-only sessions as generic chats in the UI and move site placement into desktop-only metadata.
  • Bind app-created site chats to the created site and automatically navigate the desk when a session moves to a different site.
  • Recover active agent runs from the main process so the thinking indicator and live run state survive session switches and remounts.
  • Update the AI prompt and create-site flow so ambiguous site requests ask for intent before creating a new site.

Testing

  • Added and updated unit tests for session summary hydration, environment flips, site placement storage, and site_create artifacts.
  • Validated the shared run-state refactor with focused UI and CLI test coverage.
  • npx eslint --fix and npm run typecheck passed.
@wpmobilebot

Copy link
Copy Markdown
Collaborator

📊 Performance Test Results

Comparing cd2e20f vs trunk

app-size

Metric trunk cd2e20f Diff Change
App Size (Mac) 1409.60 MB 1409.48 MB 0.12 MB ⚪ 0.0%

site-editor

Metric trunk cd2e20f Diff Change
load 1522 ms 1503 ms 19 ms ⚪ 0.0%

site-startup

Metric trunk cd2e20f Diff Change
siteCreation 8566 ms 8598 ms +32 ms ⚪ 0.0%
siteStartup 4929 ms 4933 ms +4 ms ⚪ 0.0%

Results are median values from multiple test runs.

Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change (<50ms diff)

@youknowriad youknowriad changed the title Fix AI session site placement and restore active run state across navigation May 13, 2026
@youknowriad
youknowriad merged commit feaac33 into trunk May 13, 2026
12 checks passed
@youknowriad
youknowriad deleted the codex/fix-agent-site-session-mismatch branch May 13, 2026 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants