refactor: improve session state management and enhance card interpretation logic 868e142 MilanCalegari commited on Jan 20