Skip to content

test(linux): wait for engine-side keyword delete before sending traffic - #48

Merged
Negative-Star-Innovators merged 1 commit into
mainfrom
fix/atspi-keyword-delete-engine-wait
Oct 1, 2026
Merged

Negative-Star-Innovators merged 1 commit into
mainfrom
fix/atspi-keyword-delete-engine-wait

Conversation

@Negative-Star-Innovators

Copy link
Copy Markdown
Owner

Second AT-SPI flake on main (build-linux x64 leg, run 36815802463, after #47 merged): test_keyword_delete failed with assert 'Project Chimera' in 'Mission <<REDACTED_KEYWORD_0>> today.' — 1 failed / 20 passed.

Cause

test_keyword_delete asserts "not redacted" immediately after delete_keyword, whose press_until predicate is panel-side (text not in self.keywords()). The GUI row disappears before the engine has applied the delete, so the follow-up chat still hits the live keyword and gets redacted. (The toggle helpers don't have this gap — their predicates read engine state via the CLI.)

Fix

Same wait the regex sibling (test_regex_toggle_and_delete) already applies: after delete_keyword, wait for the keyword to drop off the engine-side agentredactor keywords list before sending traffic. +6 lines, test-only.

Note: #47's fix held — no KeyError recurrence; this is the adjacent delete path.

test_keyword_delete asserted "not redacted" immediately after the GUI row
disappeared, but delete_keyword's press_until predicate is panel-side and
the GUI row can vanish before the engine has applied the delete — so the
follow-up chat still got redacted. Same flake family as the KeyError fixed
in #47, one test over: this flaked on main (build-linux x64 leg, run
36815802463, 1 failed / 20 passed).

Apply the wait the regex sibling already uses: wait for the keyword to drop
off the engine-side `agentredactor keywords list` before sending traffic.
@Negative-Star-Innovators
Negative-Star-Innovators merged commit 981bfc5 into main Oct 1, 2026
18 checks passed
@Negative-Star-Innovators
Negative-Star-Innovators deleted the fix/atspi-keyword-delete-engine-wait branch October 1, 2026 06:03
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