quick-window-91705
10/24/2025, 5:55 PMcalm-artist-7206
10/24/2025, 7:38 PMquick-window-91705
10/24/2025, 8:01 PMI'm curious what was the idea behind moving all of Settings table into the 'org' tableWe want an org admin to be able to set some reasonable defaults (llm key, model) which are inherited by all org members Figuring out when it makes sense for the org member to be able to override the defaults, and how much flexibility they have (e.g allow list of models, vs choose any model provider)
I'm skimming around and I notice that the code / constants / vars embed this notion of "personal workspace" that you mention here too. I wonder if that's important?
It sounds... good, to me, but first impression is muddled by the fact that "workspace" is an overloaded termYeah nice catch! I think from the user perspective users can have a "personal workspace" (an org that only belongs to them and they're the admin) This is similar to GitHub in the sense that you have personal account repos versus org repos Agreed that in our BE there shouldn't be such a distinction, everything should be an org
calm-artist-7206
10/24/2025, 8:08 PMquick-window-91705
10/27/2025, 3:27 PMorg_member table
There are a couple of settings field we duplicate in the org table for reasonable defaults org wide (e.g llm_api_key which the admin may want to share with all org members)quick-window-91705
10/27/2025, 3:28 PMuser_secrets table to custom_secrets (ideally makes it in before org changes are introduced)
https://github.com/OpenHands/OpenHands/pull/11525calm-artist-7206
10/27/2025, 3:47 PMquick-window-91705
10/27/2025, 4:03 PMcalm-artist-7206
10/27/2025, 4:29 PMcalm-artist-7206
10/27/2025, 4:33 PMquick-window-91705
10/27/2025, 5:37 PMI think I would split the application settings out of both org and userMakes sense! Will rework this
Could you just say, make a new account for the new org?cc @flaky-jordan-67349 for SSO related things To me this was a product related question which influenced the underlying implementation. The product team decided that it would make sense for every user to have a personal org by default and ability to create/join new ones as needed This means a user can be part of their company's org plan, and have a personal org with a separate subscription as well
quick-window-91705
10/27/2025, 5:38 PMflaky-jordan-67349
10/27/2025, 9:09 PMcalm-artist-7206
10/27/2025, 10:14 PMcalm-artist-7206
10/28/2025, 7:38 PMSettings makes more sense to be its own object:
• UserContext DI
◦ org_id will be needed on endpoints somehow
◦ the way we do it in V1 is compute and use UserContext as a FastAPI dependency
◦ it's already there, Tim has implemented it, and use with DI, in the new V1 endpoints
◦ maybe we can add org_id , or maybe a new Context mini-class for org
◦ (draft reference, I sent OpenHands-GPT-5 last night to split it and figure out how much have we implemented of an older code design proposal I made)
◦ the idea here is org has its own authy primitives (org_id) and we are treating authy primitives for user this way already; it makes sense to me to be similar ("org account")
• separating Settings for OH and for the Cloud:
◦ the rough way I visualize it is like
- Settings
- Settings (OH)
- all settings
- filter()
- append()
- SaasSettings
- build incoming: filter(); append()calm-artist-7206
10/28/2025, 7:40 PMaccount+settings in the same table, but I'm not so sure in this case, because the SaaS uses an ORM: it gives the object, which then affects the code logic, and idk, it seems to me it's becoming sort of difficult to conceptualize it as the extension of OH Settings cleanly