Skip to content

sync: merge upstream milind-soni/OpenMausBot main (0.1.157) - #26

Merged
zereight merged 808 commits into
mainfrom
sync/upstream-main
Nov 14, 2026
Merged

zereight merged 808 commits into
mainfrom
sync/upstream-main

Conversation

@zereight

Copy link
Copy Markdown
Owner

What changed

원본 milind-soni/OpenMausBot main(0.1.157, 비머지 559커밋)을 포크 main에 동기화합니다. 머지 커밋 방식(force push 없음). 포크의 "플랜 결제 제거"(PR #2)는 유지합니다.

주요 신규 피처 (원본 기준):

  • 브라우저 SOCKS5 프록시 설정(app_settings, 즉시 적용 + Undo), 프로젝트 스킬 항상 켜짐, 기본 봇 demote 메뉴, app_settings 변경 즉시 적용 + Undo
  • 폰 프로토콜을 packages/phone-protocol로 분리 + scripts/sync-phone-protocol.mjs, 폰에 데스크톱 버전 전달, 관리자 권한 없는 폰의 Data 읽기
  • OMP(ACP) 엔진, Codex Fast, Fish Audio Live 3, 모든 부서를 맡는 Chief, 방 순서 변경, webhook payload 필터, post_to_thread, 압축파일 첨부, 죽은 클라우드 컴퓨터 자동 교체/리셋
  • Settings Simple/Advanced 개편, 아바타 일괄 적용, 이미지 미리보기 복사

포크 쪽 조정(충돌·정합 처리):

  1. 결제 스텁 5개 유지 — 원본이 실제 코드를 둔 경로(src/lib/cloud-plan.ts, src/lib/usage-meter.ts, src/components/CloudUsageMeter.tsx, CloudCancelPlan.tsx, ProIntroduction.tsx)는 포크 main에 없으므로 "아무것도 살 수 없음"을 답하는 스텁으로 둡니다(파일 상단에 병합 시 스텁 유지 주석). cloudPlanView는 원본 자체 로그인 상태인 removed만 살립니다.
  2. thread-order — 원본이 wire.ts에 두는 정렬 함수는 그대로 재export하고, 포크 전용 archivedByPerson만 shared/thread-order.ts에 둡니다. WireTask에는 archivedBy?, restoredAt? 두 필드만 추가(충돌 면적 최소화).
  3. closed-scale.test.ts를 포크 파일 구성에 맞춤(삭제된 BoatOffer.tsx 제외, 스텁 부채 수치 조정).
  4. ko.json의 고아 키 remote.devices.retiredNotice 삭제(원본이 영어 원문에서 제거 → pre-push locale 검사 실패 원인).

Why

포크가 원본 main과 벌어지는 것을 막고 신규 피처를 받기 위함. 한 번에 797커밋을 합치므로 기능별로 쪼개지 않고 "동기화 1건"으로 올립니다.

How it was verified

env -u BASH_MAX_TIMEOUT_MS로 실행(셸에 설정된 BASH_MAX_TIMEOUT_MS가 claude.test.ts를 깨뜨림).

항목 Before (포크 main c0da6d428) After (이 브랜치)
tsc -b / tsconfig.server.json / packages/phone-protocol 통과 통과
oxlint --deny-warnings . 통과 통과
node --test electron/*.node-test.mjs — 2045 pass / 0 fail / 13 skipped
node scripts/generate-locale.mjs --check 통과 (10225 문자열) 통과 (10696 문자열) — 수정 전엔 ko.json 고아 키 1건 실패
플랜/계정 관련 테스트 묶음(스텁 영향권) 20 failed / 163 passed 17 failed / 325 passed, sync에서만 실패하는 테스트 0건 (실패 17건은 기준선에도 동일하게 존재)
server/index.test.ts 17 실패 17 실패 (기준선과 동일 테스트명, 신규 회귀 아님)
  • 초기 sync 전용 실패 3건(closed-scale 2, removed 로그인 상태 1)은 위 조정 3·1로 해결.
  • 이 파일이 포크 main에서도 17건 실패하는 원인은 이 PR 범위 밖입니다. 전체 vitest는 server/index.test.ts에서 한 차례 정지(약 15분)해 --exclude server/index.test.ts로 다시 돌렸고, 그 결과는 완료되는 대로 아래 코멘트로 남깁니다.

Known follow-ups (이 PR에 넣지 않음)

  • 원본의 새 Settings Plan 페이지가 포크에서도 보입니다("No plan yet", 구매 버튼 없음). 숨기려면 settings-context.ts의 plan: false와 원본 테스트 8건(SettingsModal.cloudPlan.test.ts ×4, SettingsWindow.test.ts ×4) 수정이 필요해 별도 PR로 제안합니다.
  • 병합 때 결제 경로가 되살아나는지 잡는 가드 테스트(삭제된 결제 경로 / CLOUD_PLAN_URL 재등장 검사).
  • 원본 폰 앱은 archivedBy/restoredAt을 몰라 자동 보관 스레드가 사람이 보관한 것처럼 보일 수 있음(낮은 위험).

Checklist

  • 타입체크 통과
  • pnpm test 전체: 위 표 참고 — server/index.test.ts는 포크 main에서도 동일 실패
  • dist-server/ 수정 없음
  • 비밀값 없음

milind-soni and others added 30 commits November 12, 2026 23:48
…6-1-reset-tool

# Conflicts:
#	src/locales/source-hashes.json
The pt-br pack must hold every English key (activePackComplete test).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… Allow/Deny card

Owner rule (Nov 11): no new permission cards. After the existing checks the
bot's call posts one plain line ("Resetting {name}'s cloud desktop: {why}"),
starts the reset at once (still retrying 5 s x 36 while the calling turn holds
the computer), and patches that line with how it went. One reset in flight per
computer, and the Chief rule, stay.

Removes the card path: answer, the ownCards hook into createQuotaSwitchHost,
the harnessCardOutcome line in respondToCard, dismissStale,
approval.tool.resetCloudComputer and server.cloudReset.title/what (en, pt-BR,
de and hashes). Tool description and tests follow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… reason (milind-soni#5618)

The Markdown preview only read UTF-8, so notes saved by Windows apps
(Windows-1252, common for Portuguese and other Latin languages) failed
with "Could not open this file. Check your connection and try again",
which also blamed the connection for a file the server had already sent.

- readTableResponse takes an optional single-byte fallback encoding;
  the Markdown preview reads non-UTF-8 text as Windows-1252. A file
  with NUL bytes (UTF-16, binary) is still refused.
- When the server refuses the file, the preview shows its reason;
  the connection hint stays only for requests that got no answer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	src/components/LocalComputerSection.test.ts
#	src/locales/source-hashes.json
A file with NUL bytes (UTF-16 with or without a byte order mark) is
refused before the UTF-8 check, since NUL is valid UTF-8, and the
preview now says the file is not plain text instead of asking the
person to check their connection.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
HighLevel MCP tools name the resource before the verb
(HIGHLEVEL_MCP_CONTACTS_GET_CONTACTS), so the read-only check took
CONTACTS as the verb and refused every HighLevel read as a write.
For highlevel_mcp the verb is now the second word; anything else
there still counts as a write.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…i#5636)

The signal bars beside the model name, the rows at the top of the model
menu and the phone header's Model row are drawn from /api/limit-resets.
Since 0.1.153 the server listed every Claude instance as noUsage, so it
never asked for Claude's plan usage and the bars stayed empty for Claude
in Simple and Advanced alike. The renderer was unchanged.

- plan-usage.ts: a Claude instance's sign-in is read for its plan usage
  again with no setting, as in 0.1.152. An instance whose config sets
  "usageMeter": false keeps its login unread (no UI for it).
- Tests: the accounts list and fetcher read every Claude instance and
  skip one set to false, the cache never crosses that change, the limit
  clock reports Claude beside Codex, the engine-limits e2e expects Claude
  as "unknown" (no sign-in in the fixture) rather than "unsupported".
- Renderer tests: the picker follows the bot's own engine when two
  engines report usage (Simple and Advanced), and the phone header's
  Model row shows the bars, or none for an engine with no usage.

Co-authored-by: Claude <noreply@anthropic.com>
Merge train J3: 17 community and team fixes (Nov 12)
# Conflicts:
#	src/locales/source-hashes.json
…ain's own-home files change

Main's change added 2 lines to the file after milind-soni#5553 was reviewed, which took it past the size limit. This folds the 4-line comment on item choices into 2 lines. No code changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
In a room, the label above a bot's message was 11px and did not say who
the bot was talking to. Now the name is 13px semibold in the bot's own
identity colour (avatar 20px), and when known the label shows who the
message is for: the author of the message it replies to ("You" for the
person) and the room bots it @mentions, each in their colour. The 1:1
teammate label (PeerLabel) gets the same bigger, coloured name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A webhook trigger can now carry payloadFilter: up to 10 dotted field
paths, each with the text it must have. A call whose JSON does not match
every field is recorded as ignored (202) and starts no run, so a bot no
longer spends a whole run deciding "if it is not X, stop". Matching is
case-insensitive; a list along the path matches when any item does.
The person's own Run now test is not filtered.

The trigger tool takes it as webhook_payload_filter on when=webhook
(create and update, {} removes it) and refuses it elsewhere.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Train K2: milind-soni#5553 per-item 1Password access, milind-soni#5596 automatic cloud computer reset, milind-soni#5550 shared Local VM hold
…pt-7-4892

Upgrade TypeScript to 7.0.2 (head c56a9d2).

pnpm-lock.yaml conflicted with main (main added @fishaudio/agent-client
since the PR's base). Took main's lockfile and regenerated it with
`pnpm install --lockfile-only --ignore-scripts`; the resulting delta is
byte-identical to the PR's own lockfile change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…dressee"

The addressee label only knew the room bots, so @bob was shown as the bot Bob
even when a teammate Bob owns that tag (a tie is the person's, as the server
and mentionRanges read it). Pass the teammate peers and skip person tags.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… takes, waiting bots, lapsing phone holds, mode changes and sign-in requests
…n open viewer's beats, Done on sign-in cards and the per-conversation rows
A self-hosted VPS on a box that pauses after idle time refuses SSH until
resumed, so the computer check failed until the person resumed it by hand.
When the host can't be reached, run the person's executable ssh/wake script
from the data folder once with the alias, then try the connection once more.
Without the script nothing changes; its failure is shown next to the SSH error.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A null filter on a webhook update now clears it, as the store and the
tool description already say; on another kind's update it is read as
nothing to change instead of an error.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The new trigger field adds 380 bytes to every catalog profile; refresh
the tools/list goldens and move each BUDGET_BASELINE by exactly that,
as was done for same_conversation. Shorter field description.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ocker command timeout

- The wake script now gets at most 120 s, and never the time the connection retry needs.
- ensureVpsSshMaster resolves with the time the wake script took; defaultRunner adds it to its own deadline, so a slow wake no longer times out the Docker command before it starts.
- Tests: wake time reported; a wake script past its limit is stopped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…a schema test

The trigger schema types webhook_payload_filter as an object (the catalog
never uses nullable types; provider-safe conversion strips null from type
arrays), so the description no longer offers null. The handler still
accepts null from clients that send it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A long request from another bot now folds to a single line in the chat.
Clicking it opens the full request in place, with Show less and View
exchange. View exchange opens a side panel with that bot's requests and
this bot's written answers, in order. Short requests and search hits
stay open as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
milind-soni and others added 20 commits November 14, 2026 01:29
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Train N3 (Nov 13 b): docs, DESIGN.md, fences, BubblaV, Windows tray, Cursor MCP, inbox read-all, OpenCode holds, hand-off wait, usage colours
Train N6: bots manage app settings from chat, direct with Undo (milind-soni#5690 reworked)
…'s scripted entry

The scripted fixture runs the first unused entry whose markers are in the turn's
text. A thread Books opens on itself names its source thread, and that thread is
titled from "J2-JOB: open one thread per ledger". So the J2-SELF turn also matches
"J2". The J2 entry only counts as used once the J2 turn ends and writes its
evidence. When the opened thread's fixture started first, it ran "J2" again. Its
start_thread was refused, as it should be, and the scripted step threw, so
"J2-SELF" never ran and the poll timed out (main 6a9f8b9, ubuntu shard 3/8).

Follow-up entries now come before their parents. The J2 poll also waits for J2's
own evidence before reading it. Holding J2 back by 2 s failed on main every time
and passes now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-main

test(self-threads): fix the scripted-plan race that turned main red
…e on macOS

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-test-cleanup

app-settings test: retry the temp-folder cleanup
…panion/endpoints (milind-soni#5761)

Additive. A phone can then tell a computer too old for a feature from a
missing route. The version is a release version (x.y.z with an
optional suffix) or absent:

- the server's authenticated GET /api/health gains version; the answer
  to a stranger stays {app: "openmausbot"};
- the companion's GET /api/health adds it only for a request with a
  paired device's token, and its GET /api/companion/endpoints (and so
  the companion.endpoints frame) always does;
- Electron passes app.getVersion() to the companion as OMB_APP_VERSION,
  as it already does to the server;
- the relay's GET /api/companion/endpoints on a server or Cloud adds it.

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…kages/phone-protocol (milind-soni#5759)

* Move the phone's wire, card, widget, mascot and pairing modules to packages/phone-protocol

Pure renames: shared/wire.ts and everything it imports, plus the pairing
code and link, the live-approval, sign-in and options cards, the chart
spec builders, reactions and activity. The next commit puts a re-export
at each old path.

Co-Authored-By: Claude <noreply@anthropic.com>

* Keep every desktop import working through re-exports, and hold the package to ES2022

Each moved module's old path in shared/ re-exports it, so no import in
src/, server/ or the tests changes. The package gets its own tsconfig
(lib ES2022, no DOM or Node types; only the web globals it already used
are declared), run by pnpm typecheck, and an oxlint override that
refuses node:* imports and window or document there.

The guards that read source files by path now also read the package:
the size ratchet, comment history, first-use imports, the box's
environment names, the ModelGo link check, the hardcoded-words and
server-lines scans (which now follow export * to the code), the mascot
and carved-body generators and their drift checks, and the limit-clock
seam. CI maps the package to the server area.

Co-Authored-By: Claude <noreply@anthropic.com>

* Type the hello and companion.endpoints frames and the phone's pair and fleet answers

ServerFrame gains the two frames phones fold that it lacked: hello, as
server/index.ts writes it, and companion.endpoints, as the companion's
sendEndpoints writes it. New types for what the phone reads in
packages/phone-protocol/src/responses.ts: PairResponse (POST /api/pair),
AuthPairResponse (POST /api/auth/pair), CompanionEndpointsSnapshot
(GET /api/companion/endpoints, with the optional version a computer,
server or Cloud now sends) and BotsResponse (GET /api/bots).
EnvironmentDescriptor moves into the package; server/environment.ts
re-exports it.

Types only. The server's literals for hello, both pair answers and
GET /api/bots now end in satisfies, and a companion test holds the
companion's own types to the same shapes; nothing they send changes.

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
…ommit (milind-soni#5779)

node scripts/sync-phone-protocol.mjs --out <dir> [--ref <commit>] writes
the package's sources (no tests) and package.json, the E2E vectors
(vectors/v1.json) and the chat-app host page (app-host.html), read from
git at that commit, plus SOURCE with the commit SHA. The same commit
always gives the same bytes, so the phone repository's CI can re-run it
at SOURCE and fail on any difference. It replaces only what it wrote
and refuses a non-empty directory without SOURCE.

Co-authored-by: Claude <noreply@anthropic.com>
…ight (milind-soni#5778)

The 0.1.156 release bump (9887f6b, milind-soni#5775) recorded source hashes for the
Simplified Chinese pack against the English each string was translated
from. Six of those strings had been translated before their English
changed, so pnpm i18n:check marked them stale and failed preflight:

- b2a1b07 spelled the tray items "Open/Quit OpenMausBot" (was
  "OpenMaus Bot"): native.tray.open, native.tray.quit
- a0a20bc4b added ElevenLabs as a listening option:
  serverError.voice.fishKeyRequired, call.mode.turnsHintFish,
  call.capability.turnsNeedFishKey, call.capability.turnsNeedFishKeyReason

This retranslates the six against today's English and refreshes their
hashes with `generate-locale.mjs zh --accept`, keeping the hash file's key
order so only those six hashes change.

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
wire.ts moved to packages/phone-protocol upstream; the fork's archivedBy/restoredAt
fields and thread-order split are re-applied there (shared/ keeps a re-export).
… archivedByPerson in shared/thread-order.ts

The first sync moved movesThreadToTop/orderedThreadList/isSnoozed/nextOpenThread out of
packages/phone-protocol/src/wire.ts into a new package file. Those four functions are
byte-identical to upstream's, so the move was a pure refactor that would conflict every
time upstream edits them. Restore wire.ts to upstream's text plus the two WireTask fields
the fork needs (archivedBy, restoredAt), drop the package thread-order.ts, and let
shared/thread-order.ts re-export the four functions and own archivedByPerson.
…scale test to the fork

- src/lib/cloud-plan.ts: the stub's cloudPlanView returned signed-out for every account, so a saved
  sign-in that could not be read lost upstream's 'removed' view and showed 'No plan yet'. Return
  removed for it, as upstream does; no billing view is added.
- closed-scale.test.ts: drop BoatOffer.tsx (removed in this fork) and lower the debt counts of the two
  files that are stubs here, as that test asks when a file gets cleaner.
…low.test.ts, which the fork removed with plan billing
@zereight

Copy link
Copy Markdown
Owner Author

추가 수정: CI preflight 실패 (Before / After)

Before — 첫 CI(81e4356e2)의 preflight가 실패해 build·vitest·behavior-evals 등 뒤의 잡이 전부 skipped.
scripts/testing/verification-docs.test.ts 2건 실패: cloud-rail.md: src/components/cloud-buy/AddCloudFlow.test.ts 파일 없음.
→ 포크가 플랜 결제를 제거(PR #2)할 때 지운 테스트를 문서가 계속 가리키던 포크 main의 기존 문제입니다(포크 main c0da6d428에서 로컬 재현: 2 failed / 5 passed).

After (e8766f914) — docs/verification/cloud-rail.md 172행의 해당 경로 한 개만 제거. 같은 테스트 7/7 통과, preflight 통과 후 8분할 vitest 시작.

테스트 범위 정정

로컬 전체 vitest는 server/index.test.ts 제외로도 한 시간 가까이 끝나지 않아 중단했습니다. 전체 스위트 결과는 위 CI의 vitest (ubuntu/windows, shard 1~8/8)가 근거입니다. CI가 끝나면 실패 건을 포크 main 기준선과 비교해 따로 남기겠습니다.

tao.exe and others added 2 commits November 14, 2026 13:54
fix(settings): hide the Plan page, since plan billing is removed from this fork
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.