A developer encountered an issue where a Playwright session for the TenChat service expired on a server shortly after being exported from a local macOS browser. The script failed to locate the editor element, returning a timeout error after 30,000 milliseconds.
The root cause was identified as a token conflict. TenChat uses a single-use refresh token system. When the developer exported the session state from the Mac, the browser window remained open, automatically updating the token and invalidating the copy previously uploaded to the server.
To resolve this, the developer now deletes the session in the local browser profile immediately after exporting the state. This ensures the server holds the only active session. The developer also utilizes a dry-run mode to verify the script functionality without triggering an immediate publication.




