Skip to content

test(ci): fix desktop draft race and remaining rust-preview CI failures - #7151

Merged
M4n5ter merged 2 commits into
rust-previewfrom
fix/desktop-await-pasted-drafts
Nov 22, 2026
Merged

M4n5ter merged 2 commits into
rust-previewfrom
fix/desktop-await-pasted-drafts

Conversation

@M4n5ter

@M4n5ter M4n5ter commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Summary

Closes #7067

Fixes the Windows desktop draft race and the three pre-existing root-tests CI failures on rust-preview:

  1. native-windows desktop draft paste/focus race (products/maka/terminal-shell/tests/real_host/desktop_new_session.rs): await the pasted draft before submitting, switching panes, or closing the side pane (fixing the regression from 0a7b98343).
  2. maka-agent-engine driver::witness::tests::* (plugins/agent/engine/src/driver/witness.rs): provide a valid JSON {"services": []} blob for RunSpec.tool_selection in the real-Store fixture so the agent_memory_read_alias_insert SQLite trigger from # feat(recall): retrieve effective memories with suppression guards #7147 does not fail with malformed JSON.
  3. maka-agent-native ax_session_tools (plugins/agent/native/src/owner/driver/tests/model_recovery/preset_acceptance/ax_session_tools.rs): align Step 7 with # feat(recall): retrieve effective memories with suppression guards #7147's stale-history-read guard—verify that parent_id's Read("maka://...") entry omits resultPath/status for Agent callers, and verify via Agent SessionRead({ sessionId: child_id }) that an ordinary workspace file Read("checklist.txt") still exposes resultPath.
  4. maka-cli::integration initialize (products/maka/cli/tests/integration/initialize.rs): wait for the retired host to release the RootOwner flock after maka host retire before running the reconfiguration rejection and final RootOwner::open_existing checks.

Verification

  • cargo fmt --check — pass
  • cargo test --locked -p maka-agent-engine --lib — 33/33 pass (all 5 driver::witness::tests::* green)
  • cargo test --locked -p maka-agent-native --lib ax_session_tools::universal_read_and_human_symmetric_session_tools_coordinate_rooms_and_workers — pass
  • cargo test --locked -p maka-cli --test integration initialize::public_init_persists_settings_from_stdin_and_rejects_reconfiguration — pass
  • Previous push on this PR already verified native-windows, native-windows-desktop-2, native-macos, and native-macos-agent all green

AI-Assisted Contribution

  • AI-assisted (diagnosed and verified with Maka / Gemini)

Checklist

  • Changes are focused and concise
  • Tests cover the change and fail without it
  • Format, typecheck and the affected suites pass locally

Does this PR entail a change in behavior?

  • Yes
  • No — test-only fixes

Restore desktop.type_text(...) at four call sites in desktop_new_session.rs
that immediately press an already-visible submit/close button or switch pane
focus after pasting, eliminating the Windows CI paste/focus race.

Closes #7067

Generated-by: Maka (Gemini)
…on, and retire lock race

Fix the three remaining CI failures on rust-preview:

- `maka-agent-engine` (`driver::witness::tests::*`): supply valid JSON
  `{"services": []}` for `RunSpec.tool_selection` instead of empty non-JSON
  bytes so the `agent_memory_read_alias_insert` trigger added in #7147 does
  not fail with SQLite `malformed JSON`.
- `maka-agent-native` (`ax_session_tools::universal_read_and_human_symmetric_session_tools_coordinate_rooms_and_workers`):
  align Step 7 with #7147's history-reader suppression guard—assert that the
  parent's history-resource `Read("maka://...")` omits `resultPath`/`status`
  for Agent callers, and assert via Agent `SessionRead({ sessionId: child_id })`
  that an ordinary workspace `Read("checklist.txt")` retains `resultPath`.
- `maka-cli::integration` (`initialize::public_init_persists_settings_from_stdin_and_rejects_reconfiguration`):
  wait until the retired host actually releases the `RootOwner` lock before
  testing reconfiguration rejection and reopening the store.

Generated-by: Maka (Gemini)
@M4n5ter M4n5ter changed the title fix(desktop): await pasted drafts before pane switches and submission test(ci): fix desktop draft race and remaining rust-preview CI failures Nov 22, 2026
@M4n5ter
M4n5ter merged commit 50489dd into rust-preview Nov 22, 2026
7 of 8 checks passed
@M4n5ter
M4n5ter deleted the fix/desktop-await-pasted-drafts branch November 22, 2026 04:14
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.

1 participant