Skip to content

修复 crewmate launch/steer 提交握手 - #94

Closed
codenum137 wants to merge 2 commits into
kunchenguid:mainfrom
codenum137:fm/fix-spawn-send-handshake-q2
Closed

codenum137 wants to merge 2 commits into
kunchenguid:mainfrom
codenum137:fm/fix-spawn-send-handshake-q2

Conversation

@codenum137

Copy link
Copy Markdown

变更

  • 修复 Codex idle composer 的 › 提示符识别,避免 dim suggestion 被剥离后仍误判为 pending。
  • 让 fm-spawn 使用共享 submit 校验,不再只因进入 treehouse worktree 就报告成功。
  • 修复 busy pane steer:fm_tmux_submit_core 在写入文本前检测 fm_pane_is_busy,busy 时返回错误,不把 steering 文本塞进 composer。

验证

  • tests/fm-spawn-send-handshake.test.sh
  • tests/fm-composer-ghost.test.sh
  • tests/fm-daemon.test.sh
  • for t in tests/*.test.sh; do echo "== $t"; "$t" || exit $?; done

hey137 added 2 commits June 25, 2026 19:44
fm-send falsely reported swallowed Enter for Codex because dim ghost stripping left the idle prompt glyph ›, but fm_tmux_composer_state did not treat that glyph as a bare prompt. Add it to the shared empty-composer classifier and cover the bold prompt plus dim suggestion rendering.

fm-spawn could enter a treehouse worktree and print spawned even if the launch command never submitted, because it typed after cwd changed and never verified Enter landed. Reuse the shared tmux submit verifier and fail fast when launch text remains pending.
fm-send could type steering into a busy Codex pane while the agent was waiting on a tool/background terminal. Codex queued that text for the next tool-call composer, then fm-send saw pending text and misdiagnosed Enter as swallowed.

Guard the shared tmux submit primitive with fm_pane_is_busy before typing anything. Busy returns a distinct verdict so fm-send and fm-spawn fail fast without writing into the composer.
@kunchenguid

Copy link
Copy Markdown
Owner

yeah, real one. #100 only fixed the native <summary>/<details> controls, so custom/non-native dropdowns still get their clicks swallowed by the annotate handler. i'll extend the passthrough to cover interactive roles and add an opt-out for plain click handlers. thanks for flagging.

1 similar comment
@kunchenguid

Copy link
Copy Markdown
Owner

yeah, real one. #100 only fixed the native <summary>/<details> controls, so custom/non-native dropdowns still get their clicks swallowed by the annotate handler. i'll extend the passthrough to cover interactive roles and add an opt-out for plain click handlers. thanks for flagging.

@kunchenguid

Copy link
Copy Markdown
Owner

Thanks for the PR! This branch currently has a merge conflict with the base branch.

When you get a chance, please rebase onto (or merge) the latest base branch, resolve the conflict, and push. After that, checks will re-run and the PR will get looked at again.

Noted for firstmate#94 at 69e51c79.

@codenum137

Copy link
Copy Markdown
Author

感谢这次提交。这不是实现失败;当前 main 已采用安全的 busy-queue 提交模型:目标忙碌时,已接受的输入会排队等待,而不是直接拒绝 steering,相关握手与回归覆盖也已由后续实现接管。因此本 PR 已过时并被后续实现取代,现关闭且不合并。

@codenum137 codenum137 closed this Jul 23, 2026
@JonSEng

JonSEng commented Jul 26, 2026

Copy link
Copy Markdown

Superseded: PR #92 already delivered this content. This branch predates #93, so it is not safe to merge against current main and is being closed rather than rebased.

fritznoff pushed a commit to fritznoff/starship that referenced this pull request Nov 2, 2026
* fix(bin): scope the continuity gate's session-start allowance to the first run

The watcher-continuity PreToolUse gate allowed bin/fm-session-start.sh
unconditionally, so a mid-session re-run while tasks were in flight with
no live watcher could re-acquire the home lock and run bootstrap's
mutating sweeps - the deferred follow-up documented in
docs/watcher-continuity.md.

Generalize the shared ancestry walk into fm_session_lock_relation()
(free / ancestry / foreign) in bin/fm-primary-scope-lib.sh, pass the
relation into bin/fm-continuity-command-policy.mjs, and deny a
session-start attempt whenever a live session holds the home lock: an
ancestry holder means session start already ran here, a foreign holder
means another session owns the home. A lock-free home - including a
dead holder after a crash - keeps session start a recovery command, and
the wake-drain, watcher-arm, literal teardown, and exact sentinel-enable
allowances are unchanged. The deny guidance also stops naming the
once-per-session entry point for a foreign-held lock.

* no-mistakes(review): Unify harness-aware session lock liveness

* no-mistakes(document): Align continuity gate documentation with first-run scoping

* no-mistakes(lint): Silence deliberate ShellCheck single-quote warning

* no-mistakes: apply CI fixes
@BarnabasTuzko

Copy link
Copy Markdown

MGL-1a (https://github.com/BarnabasTuzko/erpnext-extension-prorotype/pull/194): MGL-B002-AC6 moves here: its last clause, the Add from RMA action on the Returns pallet, is MGL-B023's. MGL-1a already ships and proves the Warehouse Lead's read of the Returns pallet only (list, rows without values, other pallets refused; Pallet permission row plus miglo/read_only.py hooks).

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.

4 participants