Skip to content

feat: Use native incognito mode (is_temporary) for non-preserved chats#145

Open
GottenHeave wants to merge 1 commit intoXerxes-2:masterfrom
GottenHeave:temporary-chat
Open

feat: Use native incognito mode (is_temporary) for non-preserved chats#145
GottenHeave wants to merge 1 commit intoXerxes-2:masterfrom
GottenHeave:temporary-chat

Conversation

@GottenHeave
Copy link
Copy Markdown

Use native incognito mode (is_temporary) for non-preserved chats

Summary

When preserve_chats is disabled, conversations are now created with is_temporary: true, leveraging Claude.ai's native incognito mode instead of the previous create-then-delete approach.

Changes

  • chat.rssend_chat():

    • Set is_temporary: true when preserve_chats = false, matching Claude.ai's native incognito behavior.
    • Use an empty name for temporary conversations instead of the ClewdR-{timestamp} prefix.
    • Set the Referer header to new?incognito for the conversation creation request when in incognito mode.
  • mod.rsclean_chat():

    • Skip the DELETE request for temporary (incognito) conversations, as the server handles their cleanup automatically. This removes an unnecessary network round-trip on every request when preserve_chats = false.

Motivation

Previously, non-preserved conversations were created as regular chats and explicitly deleted after completion. This had a few downsides:

  1. The conversation briefly appeared in the user's chat history before deletion.
  2. An extra DELETE request was required for every single conversation.
  3. It did not match how Claude.ai's own incognito mode works.

By passing is_temporary: true during conversation creation, the server treats it as an incognito session natively — the conversation never enters persistent history in the first place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant