screenshot-to-code
screenshot-to-code copied to clipboard
Display history on the sidebar
History is collected in the state variable. It's only updated after a user initiates an update so we need to modify it to proactively get updated either when there's a new completed response from the server or the user edits the code manually (multiple consecutive code edits should count as 1 edit)