Skip to content

Trigger issue stop button fix - #410

Merged
ahmad-ajmal merged 3 commits into
V1.4.1from
trigger-issue-stop-button-fix
Aug 7, 2026
Merged

Trigger issue stop button fix#410
ahmad-ajmal merged 3 commits into
V1.4.1from
trigger-issue-stop-button-fix

Conversation

@RooberSmoth

@RooberSmoth RooberSmoth commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

What

The actions taken after pressing stop still result in some actions taking place. This may be a trigger issue, so this PR is about figuring out how to fix that. Additionally, the run stopped system message should be displayed after all actions have been terminated.
This PR will aim to:

  • Clean up all triggers after stop button pressed
  • Make sure the run stopped system message appears after all actions are completed and executed

UPDATE:

The initial trigger hypothesis wasn't the real problem. The termination process, was handling all queued triggers, but the ones currently executing were still going ahead. This is why it would result in additional actions taken after the "ended turn" in logs.

The race between pressing stop and executing current actions means that there will most likely be one currently executing which can't be terminated in the normal way.

This PR will NOW aim to:

  • Clear up this race and make it so that old and discontinued actions no longer go ahead.

UPDATE TO THE UPDATE:

  • turns out that the currently executing triggers need to organically do their thing and then stop.
  • but what needs to happen for sure is that even while that's going on, "run ended" needs to appear at the end after the results/actions do their thing.

@RooberSmoth RooberSmoth self-assigned this Aug 7, 2026
@RooberSmoth RooberSmoth added the bug Something isn't working label Aug 7, 2026
@RooberSmoth
RooberSmoth changed the base branch from main to V1.4.1 August 7, 2026 01:25
RooberSmoth and others added 2 commits August 7, 2026 16:15
their settlement before "Run stopped" (wait_for shim, executor threads,
action manager re-raise). Adds regression tests; removes debug prints.
@ahmad-ajmal
ahmad-ajmal marked this pull request as ready for review August 7, 2026 09:34
@ahmad-ajmal
ahmad-ajmal merged commit 7c55e5f into V1.4.1 Aug 7, 2026
ahmad-ajmal added a commit that referenced this pull request Aug 7, 2026
## Sync V1.4.1 → dev

Brings dev up to date with the V1.4.1 line (55 commits). The headline
changes:

### Living UI platform
- **Trigger plane (app → agent communication)**: Living UIs declare
  triggers in `triggers.json`; fires land in an in-app `agent_requests`
  queue, pass capability/consent/era gates at the host, and the agent
  claims, acts, and posts the result back to the app and chat. Includes
  gate enforcement (derived `capabilities.triggers`, no self-answering
  hooks), kit helpers (`fireAgentTrigger`/`useAgentRequest`), and
  `lui trigger`/`lui requests` CLI commands.
- **Rename `living-ui-v2` → `living-ui`**: directory, runner module/class,
  log tags, CI workflow, and all prose — the manifest's
  `livingUIVersion: 2` protocol field is unchanged.
- Verifier hardening: turn budgets, early-end guard, evidence rules
  (incl. `callLLM` for AI features), `browser_drag`, spec supersession
  (`~~strikethrough~~` in `## Changes`), throttled-LLM classification.

### Run stop (#410)
Cancellation now genuinely reaches in-flight actions and settlement waits
for them — no more output landing after "Run stopped." (compat `wait_for`
shim, executor thread wait, action-manager re-raise; 5 regression tests).

### UI
Dashboard revamp (grid layout, widget sizing, token-usage fixes), mobile
chat fixes, tooltips.
**Note:** run `npm install` in `app/ui_layer/browser/frontend` after
pulling — the dashboard adds `react-grid-layout`.

### Conflict resolution
The only conflicted file was `app/living_ui/manager.py`: dev's PR #378
(guard `_save_projects()` call sites) was written against the old
two-process Living UI architecture that V1.4.1 has since replaced.
Resolution: V1.4.1's architecture wins wholesale, with PR #378's intent
ported onto it — persist failures in the watchdog paths now log instead of
breaking restart/escalation. The launch-path guards weren't ported because
the new action layer already surfaces persist failures as honest action
errors. Dropped `project.backend_process` (attribute no longer exists).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants