* refactor: remove unused internal helpers and state * test(tui): await deferred submissions before reconnect attach