Skip to content

fix: custom tree filters and macro replay after a typed secret - #552

Closed
RasulOs wants to merge 2 commits into
developfrom
fix/0.8-runtime-regressions
Closed

RasulOs wants to merge 2 commits into
developfrom
fix/0.8-runtime-regressions

Conversation

@RasulOs

@RasulOs RasulOs commented Nov 18, 2026

Copy link
Copy Markdown
Collaborator

Changes

  • Custom tree filter/formatter. AndroidStateProvider copied the filter and formatter for every observation and ran them in a worker thread. A caller's object holding a lock failed to copy (every state read failed), state it kept landed on a throwaway copy, and event-loop code raised. Only the package's own ConciseFilter, DetailedFilter and IndexedFormatter are copied and run off the loop now; anything else, subclasses included, runs in place on the loop.
  • Macro replay. Recordings made before secret masking store a typed e-mail or username in clear text, while the live state is masked, so replay stopped after the first typed secret on small screens. The recorded state is now compared as saved and, if that fails, after the same masking.

Testing

  • Full suite passes; new test_state_provider_custom_processors.py and test_macro_replay_recorded_secret_state.py.
  • Android 16 emulator: agent run with the default filter, and replay of a 0.7.4 recording with a typed secret.

🤖 Generated with Claude Code

RasulOs and others added 2 commits November 17, 2026 10:16
AndroidStateProvider copied the filter and formatter for every
observation and ran them in a worker thread. A caller's own object that
holds a lock could not be copied, so every state read failed; state it
kept landed on a throwaway copy; and code using the running event loop
raised in the thread.

Only the package's own filter and formatter classes are copied and run
off the loop now. Anything else, subclasses included, is called in
place on the event loop, on the caller's object.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The live state is masked before it is compared with the recorded one. A
recording made before masking existed stores a typed e-mail or username
in clear text, so on small screens the comparison fell below the
threshold and the replay stopped after the first typed secret.

The recorded state is compared as saved and, if that does not match,
after the same masking as the live state.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@RasulOs RasulOs closed this Nov 18, 2026
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