agent-orchestrator/packages/core/src
Harsh Batheja cc2031f0f6
fix: bugbot follow-ups from PR #315 (#357)
* fix: address bugbot follow-ups in send and opencode discovery

* fix(test): update stale integration test expectation for opencode bootstrap

The getLaunchCommand implementation now uses a robust bootstrap pattern
that captures the session ID between 'opencode run' and 'exec opencode --session'.
Updated test to check both parts separately instead of expecting a contiguous
string that no longer exists.

* fix: avoid NaN in sort comparator when both timestamps are missing

The comparator (b.updatedAt ?? -Infinity) - (a.updatedAt ?? -Infinity)
produces NaN when both timestamps are missing because -Infinity - (-Infinity)
is NaN in IEEE 754. A comparator returning NaN violates ECMA-262's
'consistent comparison function' requirement, making sort results
implementation-defined.

Fixed by adding equality check before subtraction:
- If both timestamps are equal (including both -Infinity), return 0
- Otherwise return the difference
2026-03-08 12:50:54 +05:30
..
__tests__ feat: OpenCode session lifecycle and CLI controls (#315) 2026-03-08 09:55:44 +05:30
config-generator.ts feat: add `ao start <url>` one-command project onboarding (#267) 2026-03-03 13:52:49 +05:30
config.ts feat: OpenCode session lifecycle and CLI controls (#315) 2026-03-08 09:55:44 +05:30
index.ts feat: OpenCode session lifecycle and CLI controls (#315) 2026-03-08 09:55:44 +05:30
lifecycle-manager.ts feat: add PR claim flow for agent sessions (#326) 2026-03-07 03:54:19 +05:30
metadata.ts feat: OpenCode session lifecycle and CLI controls (#315) 2026-03-08 09:55:44 +05:30
opencode-session-id.ts feat: OpenCode session lifecycle and CLI controls (#315) 2026-03-08 09:55:44 +05:30
orchestrator-prompt.ts feat: add PR claim flow for agent sessions (#326) 2026-03-07 03:54:19 +05:30
orchestrator-session-strategy.ts feat: OpenCode session lifecycle and CLI controls (#315) 2026-03-08 09:55:44 +05:30
paths.ts fix: migrate to hash-based project isolation architecture 2026-02-18 00:19:55 +05:30
plugin-registry.ts feat: OpenCode session lifecycle and CLI controls (#315) 2026-03-08 09:55:44 +05:30
prompt-builder.ts feat: add PR claim flow for agent sessions (#326) 2026-03-07 03:54:19 +05:30
session-manager.ts fix: bugbot follow-ups from PR #315 (#357) 2026-03-08 12:50:54 +05:30
tmux.ts fix: increase delays in spawn prompt submission to ensure Enter is processed (#62) 2026-02-16 20:31:07 +05:30
types.ts feat: OpenCode session lifecycle and CLI controls (#315) 2026-03-08 09:55:44 +05:30
utils.ts fix: dashboard config discovery + CLI service layer refactoring (#70) 2026-02-18 17:08:48 +05:30