Commit Graph

10381 Commits

Author SHA1 Message Date
Peter Steinberger
ee9522ef8d fix: keep browser status page probe within timeout 2026-05-11 12:51:07 +01:00
ai-hpc
b4a420185c fix(browser): add pageReady to Chrome MCP existing-session status
Closes #80268

For Chrome MCP existing-session profiles, browser status previously
exposed only transport-handshake fields (cdpHttp, cdpReady) sourced
from isTransportAvailable(...). It did not surface whether a
page-level tool round-trip (list_pages, etc.) actually succeeds, so
operators and downstream tooling had no honest signal to distinguish
"transport handshake passed" from "page tools are usable".

This adds a pageReady field to BrowserStatus, derived from
profileCtx.isReachable(...) for chrome-mcp profiles (with a status-
bound 5s timeout) and mirroring cdpReady for managed CDP profiles
where the WS handshake already covers page-level reachability.

The status route opts the page probe into ephemeral mode so a passive
status call does not seed a persistent cached Chrome MCP session as a
side effect. listChromeMcpTabs reuses an existing cached attach
session if one already exists, otherwise opens a temporary session
that is closed immediately after the round-trip. The cached-session
path used by /tabs and other interactive routes is unchanged.

isReachable now threads the new ephemeral option (alongside timeoutMs)
into listChromeMcpTabs; existing callers in tabs.ts pass only
timeoutMs and continue to use the cached path.

The page probe is skipped when transport itself is down so status
latency does not regress on offline profiles.

Test changes:
- basic.existing-session.test.ts: the prior assertion that running:
  true and cdpReady: true with isReachable: false is now flipped to
  assert pageReady: false in that state, matching the new contract.
- New tests cover: probe-throws (treated as page-down), both-succeed
  (pageReady: true), transport-down (probe skipped, pageReady: false),
  and an ephemeral-mode regression that asserts the status probe
  passes { ephemeral: true } so it cannot seed a cached session.
2026-05-11 12:51:07 +01:00
Peter Steinberger
6ee0c9a696 fix(codex): honor codex fallback blocking 2026-05-11 12:41:21 +01:00
Peter Steinberger
3f05165c47 fix(codex): preserve codex auth order 2026-05-11 12:41:21 +01:00
pashpashpash
30ed0329cb fix(codex): avoid mutating rate limit candidates 2026-05-11 12:41:21 +01:00
Peter Steinberger
10c43aefd8 fix(codex): ignore blocked account fallback state 2026-05-11 12:41:21 +01:00
Peter Steinberger
554d80c060 fix(codex): scope auth state updates 2026-05-11 12:41:21 +01:00
pashpashpash
edd7e3c70c test: fix current extension test assertions 2026-05-11 12:41:21 +01:00
Peter Steinberger
b2b381ac4d fix(codex): prefer live account credential state 2026-05-11 12:41:21 +01:00
Peter Steinberger
dbe568556e fix(codex): avoid app-server request cross-talk 2026-05-11 12:41:21 +01:00
Peter Steinberger
95cee42b5b fix(codex): prefer direct codex auth order 2026-05-11 12:41:21 +01:00
Peter Steinberger
8185eb40e8 fix(codex): complete side thread request parity 2026-05-11 12:41:21 +01:00
pashpashpash
3e5544cc76 test(zalouser): type mock Zalo constructor result 2026-05-11 12:41:21 +01:00
pashpashpash
ddc9581d00 fix(codex): preserve side thread tools 2026-05-11 12:41:21 +01:00
pashpashpash
e15f99e34e fix(codex): show api key profile handles 2026-05-11 12:41:21 +01:00
pashpashpash
ac618c6d9d fix(codex): preserve account ladder indentation 2026-05-11 12:41:21 +01:00
pashpashpash
7f5a10e0e4 fix(codex): clarify account auth ladder 2026-05-11 12:41:21 +01:00
pashpashpash
004854e76e fix(codex): preserve blank account separators 2026-05-11 12:41:21 +01:00
pashpashpash
1877c600ea fix(codex): infer api key account fallback 2026-05-11 12:41:21 +01:00
pashpashpash
e310824828 fix(codex): explain account auth fallback 2026-05-11 12:41:21 +01:00
pashpashpash
cc95d4dd28 fix(codex): rotate auth profiles inside harness 2026-05-11 12:41:21 +01:00
pashpashpash
f447e5b9db fix(btw): keep Codex side questions tool-free 2026-05-11 12:41:21 +01:00
pashpashpash
a947e8fae0 fix(codex): align btw side thread semantics 2026-05-11 12:41:21 +01:00
pashpashpash
42e259a696 fix(codex): route btw through native side threads 2026-05-11 12:41:21 +01:00
Shakker
7d966238b3 test: assert whatsapp inbox payloads 2026-05-11 12:27:44 +01:00
Peter Steinberger
ffba41fe6b fix(codex): ignore echoed abort marker prompts 2026-05-11 11:59:56 +01:00
Peter Steinberger
be0e85a72d fix(codex): accept abort markers without request responses 2026-05-11 11:59:56 +01:00
Peter Steinberger
b273b81e5b fix(codex): narrow app-server abort marker fallback 2026-05-11 11:59:56 +01:00
Peter Steinberger
4ff28a7735 fix(codex): release interrupted app-server turns 2026-05-11 11:59:56 +01:00
Peter Steinberger
4e67506f71 test: tighten qa runner runtime assertions 2026-05-11 11:51:19 +01:00
Peter Steinberger
1ff126c682 test: tighten plugin tool payload assertions 2026-05-11 11:46:51 +01:00
Shakker
5b66d7f865 test: assert anthropic vertex stream options 2026-05-11 11:43:11 +01:00
Shakker
af322da872 test: assert anthropic vertex catalog 2026-05-11 11:42:25 +01:00
Shakker
6c4ffec1be test: assert browser plugin registration 2026-05-11 11:41:18 +01:00
Shakker
63649bbbff test: assert matrix monitor payloads 2026-05-11 11:39:46 +01:00
Shakker
21e0f60890 test: assert matrix startup directory calls 2026-05-11 11:38:04 +01:00
Peter Steinberger
3021d36f84 test: tighten acpx runtime lease assertions 2026-05-11 11:36:55 +01:00
Shakker
0f83118dfd test: assert matrix registration calls 2026-05-11 11:36:31 +01:00
Peter Steinberger
accba2c4e2 test: tighten anthropic vertex stream assertions 2026-05-11 11:35:32 +01:00
Shakker
bc338a4019 test: assert matrix config storage calls 2026-05-11 11:35:27 +01:00
Peter Steinberger
8ac299ee49 test: tighten browser cdp screenshot assertions 2026-05-11 11:34:16 +01:00
Harris Ali
39cbe94f07 fix(msteams): normalize pre-suffixed thread session keys (#78850)
Normalize pre-thread-qualified Teams route session keys before deriving channel-thread lanes so cached route reuse cannot create malformed mixed thread sessions.

Co-authored-by: Harris Ali <harrisali@getfieldforce.com>
2026-05-11 05:34:14 -05:00
Shakker
5a4201fd86 test: assert matrix client error shapes 2026-05-11 11:33:23 +01:00
Peter Steinberger
5b293150c3 test: tighten browser doctor assertions 2026-05-11 11:32:59 +01:00
Peter Steinberger
37fa027772 test: tighten codex protocol validator assertions 2026-05-11 11:31:04 +01:00
Shakker
8de5a3e2b8 test: assert matrix profile action calls 2026-05-11 11:30:41 +01:00
Shakker
8a13d09b3a test: assert matrix recovery key result 2026-05-11 11:29:41 +01:00
Peter Steinberger
c60950856d test: tighten codex conversation binding assertions 2026-05-11 11:29:16 +01:00
Shakker
432e19527e test: assert matrix raw event serialization 2026-05-11 11:28:35 +01:00
Shakker
b00e84e6be test: assert matrix poll parsing 2026-05-11 11:27:50 +01:00