Skip to content

fix: stabilize agent lifecycle, rehire flows, and UI state#456

Merged
0xTomDaniel merged 18 commits intonextfrom
feature/455-fix-ui-flashing
Mar 6, 2026
Merged

fix: stabilize agent lifecycle, rehire flows, and UI state#456
0xTomDaniel merged 18 commits intonextfrom
feature/455-fix-ui-flashing

Conversation

@0xTomDaniel
Copy link
Contributor

@0xTomDaniel 0xTomDaniel commented Mar 6, 2026

Summary

This PR ended up being much broader than the original UI-flashing fix. It closes the lifecycle and rehire regressions that were surfacing as flashing, blocked states, stale workflow transitions, and incorrect post-hire metrics across the web agent flows.

  • stabilize agent thread lifecycle projection and UI-state boundaries so active runs stop rapidly switching views and flashing in the UI
  • harden onboarding, rehire, and command-routing transitions across Pendle, GMX, and CLMM so agents resume cleanly and do not get stuck in stale or blocked states
  • tighten fire/run invariants, busy-thread handling, stream retry/teardown behavior, and onboarding resets so firing an agent completes cleanly and transient stream interruptions do not leave the UI in the wrong state
  • fix CLMM inherited-position behavior, including stale workflow regressions, post-hire APY/fee computation, and fire handling for pre-existing positions
  • fix GMX rehire and execution behavior by using the delegator wallet for perpetual plan building and stabilizing position/session metrics
  • fix Pendle workflow correctness by routing through the transition helper, restoring buy PT routing, adding latency instrumentation, and matching market symbols case-insensitively
  • expand regression coverage across lifecycle projection, onboarding routing, fire/run commands, poll-cycle behavior, accounting, and Pendle market matching, plus a small web AG UI start/build tooling fix

Closes #455

Test Plan

  • Added and updated targeted unit and integration coverage across agent-clmm, agent-gmx-allora, and agent-pendle for the lifecycle, onboarding, fire/run, poll-cycle, accounting, and market-matching regressions addressed here
  • pnpm test:ci
  • pnpm lint
  • pnpm build
  • local Pendle hire flow against ONCHAIN_ACTIONS_API_URL=http://localhost:50051

@0xTomDaniel 0xTomDaniel enabled auto-merge March 6, 2026 04:19
@0xTomDaniel 0xTomDaniel added this pull request to the merge queue Mar 6, 2026
Merged via the queue into next with commit 1e7c2b1 Mar 6, 2026
2 checks passed
@0xTomDaniel 0xTomDaniel changed the title fix: harden Pendle market symbol matching fix: stabilize agent lifecycle, rehire flows, and UI state Mar 6, 2026
@0xTomDaniel 0xTomDaniel deleted the feature/455-fix-ui-flashing branch March 6, 2026 19:07
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