@omercnet/paseo-omp 5.7.0-next.521.1 → 5.7.0-next.523.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omercnet/paseo-omp",
3
- "version": "5.7.0-next.521.1",
3
+ "version": "5.7.0-next.523.1",
4
4
  "type": "module",
5
5
  "description": "Paseo integration for OMP, including its direct provider and workspace tooling.",
6
6
  "license": "MIT",
@@ -1,2 +1,2 @@
1
1
  /** Release Please keeps this bundle-safe constant aligned with package.json. */
2
- export const PASEO_OMP_PACKAGE_VERSION = "5.7.0-next.521.1"; // x-release-please-version
2
+ export const PASEO_OMP_PACKAGE_VERSION = "5.7.0-next.523.1"; // x-release-please-version
@@ -2618,8 +2618,9 @@ export class OmpProviderSession implements OmpOpenedSession, OmpSubagentControls
2618
2618
  if (!event.id || event.id !== turn.nativeRequestId) return;
2619
2619
  if (event.agentInvoked) {
2620
2620
  // A request-keyed prompt result proves dispatch, but an unkeyed terminal still needs
2621
- // ordered native user and assistant evidence from this accepted prompt.
2622
- this.markAgentEvidence(turn);
2621
+ // ordered native user and assistant evidence from this accepted prompt. OMP can send it
2622
+ // after agent_end, so it is not run activity that makes a waiting agent_end stale.
2623
+ this.markAgentEvidence(turn, false);
2623
2624
  return;
2624
2625
  }
2625
2626
  if (turn.localOnlyDisabled || turn.steersInFlight > 0) return;
@@ -3057,10 +3058,14 @@ export class OmpProviderSession implements OmpOpenedSession, OmpSubagentControls
3057
3058
  this.projector.publishUser(pending.text, pending.clientMessageId, entryId);
3058
3059
  }
3059
3060
 
3060
- private markAgentEvidence(turn: ActiveTurn): void {
3061
+ /**
3062
+ * `runActivity` orders this evidence after any unkeyed agent_end that is waiting for user
3063
+ * correlation, which marks that agent_end stale. A prompt acknowledgement is not run activity.
3064
+ */
3065
+ private markAgentEvidence(turn: ActiveTurn, runActivity = true): void {
3061
3066
  turn.agentInvoked = true;
3062
3067
  turn.nativeActivity = true;
3063
- turn.activitySequence += 1;
3068
+ if (runActivity) turn.activitySequence += 1;
3064
3069
  turn.localOnlyEligible = false;
3065
3070
  this.cancelLocalOnlyCompletion(turn);
3066
3071
  this.refreshAmbiguousTerminal(turn);