feat: Use native incognito mode (is_temporary) for non-preserved chats#145
Open
GottenHeave wants to merge 1 commit intoXerxes-2:masterfrom
Open
feat: Use native incognito mode (is_temporary) for non-preserved chats#145GottenHeave wants to merge 1 commit intoXerxes-2:masterfrom
is_temporary) for non-preserved chats#145GottenHeave wants to merge 1 commit intoXerxes-2:masterfrom
Conversation
094d999 to
330da5f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Use native incognito mode (
is_temporary) for non-preserved chatsSummary
When
preserve_chatsis disabled, conversations are now created withis_temporary: true, leveraging Claude.ai's native incognito mode instead of the previous create-then-delete approach.Changes
chat.rs—send_chat():is_temporary: truewhenpreserve_chats = false, matching Claude.ai's native incognito behavior.ClewdR-{timestamp}prefix.Refererheader tonew?incognitofor the conversation creation request when in incognito mode.mod.rs—clean_chat():preserve_chats = false.Motivation
Previously, non-preserved conversations were created as regular chats and explicitly deleted after completion. This had a few downsides:
By passing
is_temporary: trueduring conversation creation, the server treats it as an incognito session natively — the conversation never enters persistent history in the first place.