fix: inject password into pool account login results for mysis extraction
Bug: When proxy substituted register with pool account login, the mysis
couldn't extract password from the result, leaving currentPassword empty
and system prompt showing 'Password:' with no value.
Root cause: Game server API difference between login and register:
- register response: {session_id, username, password}
- login response: {session_id, username} (no password - client has it)
When proxy intercepts register and substitutes pool account login, mysis
receives login response format without password field, breaking extraction.
Fix: Add injectPasswordIntoResult() to modify login result before returning
to mysis. Injects password into JSON payload so mysis can extract it via
existing extractPassword() logic. This makes substituted login match the
register response format the mysis expects.
Also fixed:
- Don't release account when transitioning to idle (preserve login session)
- Don't overwrite password in cacheSnapshotToolResult() with empty string
Result: Myses using pool accounts now extract complete credentials and
display them in system prompt, maintaining game transparency while using
account pool for testing.
xonecas2026-02-09
1c8d566bf00e3fa8b1de5eff8052a8a150c5ade1
parent 6c43b12