Skip to content

Studio: keep the Ask before downloading programs setting across browsers - #17240

Merged
danielhanchen merged 3 commits into
unslothai:mainfrom
NilayYadav:save-program-download-prompt
Nov 10, 2026
Merged

danielhanchen merged 3 commits into
unslothai:mainfrom
NilayYadav:save-program-download-prompt

Conversation

@NilayYadav

@NilayYadav NilayYadav commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

Turning off “Ask before downloading programs” in Settings > Browser only stuck in the browser where it was changed. Opening Studio in another browser, a private window or from a new tunnel address showed it switched back on, while the “Ask before downloading” toggle next to it carried over as expected. The server dropped this one setting when saving the account’s browser preferences.

The account’s browser preferences now save and return this setting like the others, so it follows the account everywhere. Accounts saved before this change keep each browser’s current value until the setting is changed again.

A backend test now reads the synced Browser, Chat and Plus menu stores and fails when the server model is missing a field the client sends, so the next new setting cannot be dropped the same way.

Before and after

Both toggles turned off in browser A, then Settings > Browser opened in a fresh browser B for the same account.

Browser A, both turned off Before: browser B (main) After: browser B (this branch)
browser A before browser B after browser B

Before: “Ask before downloading programs” is back on in browser B. After: it stays off.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-10T10:38:42.175458Z c655f16 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: 4917a51945

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@unslothai unslothai deleted a comment from NilayYadav Nov 10, 2026
@danielhanchen

Copy link
Copy Markdown
Member

@codex review

1 similar comment
@danielhanchen

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

Reviewed commit: c655f165d9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danielhanchen
danielhanchen merged commit 3d317d4 into unslothai:main Nov 10, 2026
danielhanchen added a commit that referenced this pull request Nov 10, 2026
…ount (#17399)

## Summary

`(Python 3.13, a-f)` is red on `main`:

```
studio/backend/tests/test_device_sync_settings.py::test_every_synced_store_field_is_saved
E   AssertionError: ('ChatPrefsPayload', {'shareComposerDraft'})
```

This is a merge race between two correct PRs. #16548 (merged yesterday)
added the opt-in `shareComposerDraft` preference to the chat preferences
store. #17240 (merged today) added a guard that every synced chat
preferences field is accepted by the server: the sync hook sends the
whole store, and `ChatPrefsPayload` ignores unknown keys, so a field the
model does not list is silently dropped and never follows the account.
`shareComposerDraft` is not in `LOCAL_CHAT_PREFS` (which is only for
browser-bound state such as notification permission and panel layout),
so it is meant to sync like the other composer preferences, and today it
does not.

## Changes

- `studio/backend/routes/settings.py`: `ChatPrefsPayload` accepts
`shareComposerDraft: Optional[bool]`, next to the other composer
preferences. The setting now follows the account like
`plainTextComposer` does; nothing else changes and older clients that do
not send it are unaffected.

## Testing

- `studio/backend/tests/test_device_sync_settings.py`: 19 passed; on
`main` the guard fails as above (1 failed, 18 passed).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants