straight-sundown-84319
09/16/2025, 9:37 PMwooden-umbrella-84098
09/16/2025, 10:19 PMwooden-umbrella-84098
09/16/2025, 10:20 PMquiet-night-61895
09/17/2025, 12:12 AMcalm-artist-7206
09/17/2025, 3:51 PMUserContext is a thing in the server; is a dependency that the saas will override; we build local version from configuration
• configuration objects are sent via requests; but there have to be classes in there to receive them
• no MU/HA concerns (directly)wooden-umbrella-84098
09/17/2025, 4:03 PMcalm-artist-7206
09/17/2025, 4:16 PMwooden-umbrella-84098
09/17/2025, 4:28 PMdo you mean agent server? or app server?is a thing in the serverUserContext
wooden-umbrella-84098
09/17/2025, 4:29 PMcalm-artist-7206
09/17/2025, 4:38 PMwooden-umbrella-84098
09/17/2025, 5:02 PMwooden-umbrella-84098
09/17/2025, 5:03 PMwooden-umbrella-84098
09/17/2025, 5:03 PMcalm-artist-7206
09/17/2025, 5:06 PMcalm-artist-7206
09/17/2025, 5:13 PMwooden-umbrella-84098
09/17/2025, 5:22 PMwooden-umbrella-84098
09/17/2025, 5:24 PMwooden-umbrella-84098
09/17/2025, 5:26 PMcalm-artist-7206
09/17/2025, 5:26 PMwooden-umbrella-84098
09/17/2025, 5:26 PMwooden-umbrella-84098
09/17/2025, 5:27 PMcalm-artist-7206
09/17/2025, 6:57 PMWe want agents to run inside of containerized runtimes. We need some kind of HTTP interface to drive those agents.I see that, but why? This was a Saas need, it didn’t seem like an OH need, right? A possibility… 🤔 OK, it was always a possibility, to want to run the agent fully in a container. But it’s not clear to me why we’d do that this way - stripping down the server, fully, to the point it cannot really run without another server - when we have runtimes. And something else seems a bit strange when I look from a different perspective: • so the Saas is a MU/HA application built on top of OH • it wants to run OH • it becomes clear that running it directly as if it was OH itself doesn’t scale • so it needs, instead of a dozen lines of code to start OH, to do more, to become an app • which packages/runs OH servers, overrides configuration[1] So… I’m dense, sorry, but is that app OH? I admit, I kinda thought about this before, such app makes sense. But, to my mind, this is a MU/HA app, and it’s a more complex and heavy setup and all. I’m not sure we need to burden OH users with it What if this app is separate, a separate repo, it packages OH by maybe removing some stuff, it hooks into stuff, when it starts OH it overrides configuration, etc; it’s very interesting that it’s sorta what you’ve done, but it also isn’t: one big deal really seems to be that the “user settings” need to be a different class (two, at least, or several); it’s a big deal because it drives the rest [1] This is a sticky point where I don’t get the “no configuration” desire. It… doesn’t really work IMO. To my mind, it needs to override, rather than say it had no configuration
wooden-umbrella-84098
09/17/2025, 6:58 PMI see that, but why? This was a Saas need, it didn’t seem like an OH need, right?It's an OSS need if you want docker sandboxes
wooden-umbrella-84098
09/17/2025, 6:59 PMcalm-artist-7206
09/17/2025, 6:59 PMwooden-umbrella-84098
09/17/2025, 7:00 PMwooden-umbrella-84098
09/17/2025, 7:01 PMcalm-artist-7206
09/17/2025, 7:02 PMwooden-umbrella-84098
09/17/2025, 7:02 PMcalm-artist-7206
09/17/2025, 7:03 PMwooden-umbrella-84098
09/17/2025, 7:04 PMwooden-umbrella-84098
09/17/2025, 7:06 PMwooden-umbrella-84098
09/17/2025, 7:27 PMquiet-night-61895
09/17/2025, 7:28 PMcalm-artist-7206
09/17/2025, 7:42 PMwooden-umbrella-84098
09/17/2025, 7:58 PMquiet-night-61895
09/17/2025, 8:02 PMquiet-night-61895
09/17/2025, 8:07 PMI associate it with why we have a proprietary license on the repoSeems like a separate question. But I'll comment FWIW. What I'm hearing is that there being a non-MIT folder in the repo creates a problem, or maybe just feels distasteful, not sure which. IMO the repo merge was in the best interest of OSS under the current architecture because it addresses very common reasons the development flow breaks OSS code. An alternative would have been that Enterprise and OSS decouple and have a clearer boundary and interface between them. That would have been my choice, but not tractable when they share the whole GUI. I would have forked the GUI. That would have made OSS more independent but also likely to miss out on more improvements and features.
quiet-night-61895
09/17/2025, 8:11 PMcalm-artist-7206
09/18/2025, 5:55 AMSESSION_API_KEY and python path; it's the nested runtime key (and it's in agent-server)
• just skimming through the bullet points of this comment, will be enough, you'll see; it's written by the agent, but it's accurate
• there are many other entanglements in the SaaS that are vying for relevance; but most are localized, while this one affects a lot - a lot - of server code.
It's like, a lot of the server code in v0, both on OH and SaaS works by side effects from ambient runtime environment, which... yes it does. (specially tests because of also order / import time / env), Very sensitive to any change/refactoring/sneeze. 🫠
In v1, Tim has done a lot of containment, it's not like in v0!
I think the simple thing here, that we still should clearly deal with, is that the SaaS needs to override server configuration, when it runs OH server.
OK, then maybe it should do it, but explicitly, typed, by using the appropriate configuration classes and load/save methods, so we can see it and contain it.
Maybe we could
• accept that the agent-server has configuration
• decide a single source of truth for configuration defaults/local
• send it configuration override values from the SaaS
• regular, typed, getters/setters
• there's e.g. conversation path, that should be overriddable on local; for the SaaS it's a constant, then in a single place on the SaaS, e.g. when it initializes servers, it should always set it to the constant, and send it over
Where should configuration live in V1?calm-artist-7206
09/18/2025, 5:57 AMwooden-umbrella-84098
09/18/2025, 1:13 PMwooden-umbrella-84098
09/18/2025, 1:14 PMwooden-umbrella-84098
09/18/2025, 1:15 PMwooden-umbrella-84098
09/18/2025, 1:15 PMcalm-artist-7206
09/18/2025, 6:10 PMwooden-umbrella-84098
09/18/2025, 6:38 PMwooden-umbrella-84098
09/18/2025, 6:41 PMwooden-umbrella-84098
09/18/2025, 6:41 PMcalm-artist-7206
09/18/2025, 8:02 PMwooden-umbrella-84098
09/18/2025, 8:10 PMcalm-artist-7206
09/18/2025, 8:10 PMstraight-sundown-84319
09/18/2025, 8:16 PMwooden-umbrella-84098
09/18/2025, 8:16 PMcalm-artist-7206
09/18/2025, 8:46 PMcalm-artist-7206
09/18/2025, 8:47 PMwooden-umbrella-84098
09/18/2025, 8:47 PMcalm-artist-7206
09/18/2025, 8:48 PMwooden-umbrella-84098
09/18/2025, 8:48 PMwooden-umbrella-84098
09/18/2025, 8:49 PMcalm-artist-7206
09/18/2025, 8:49 PMcalm-artist-7206
09/18/2025, 9:01 PMI do think getting them into separate repos is a good long-term goal, but I think we're ~months away from that, not ~daysHow does ~weeks sound? Hey, two months is 8 weeks, two months and a half is 10 weeks, one could always use the word "weeks", it's a... reasonable expression of time Nooo ulterior motive! (OK with ulterior motives)
wooden-umbrella-84098
09/18/2025, 9:12 PMwooden-umbrella-84098
09/18/2025, 9:12 PMquiet-night-61895
09/18/2025, 9:20 PMcalm-artist-7206
09/18/2025, 9:21 PMquiet-night-61895
09/18/2025, 9:24 PMquiet-night-61895
09/18/2025, 9:25 PMwooden-umbrella-84098
09/18/2025, 9:25 PMcalm-artist-7206
09/18/2025, 9:53 PMquiet-night-61895
09/18/2025, 9:55 PMcalm-artist-7206
09/18/2025, 10:14 PMif user_id, which means code that never works in OH.
• it takes a cognitive toll on potential OSS contributors ("I should test this, wait I can't");
• it looks bad ("not intended for you buzz off"),
• and it's a very fragile interface between OH and Saas, e.g. it needs remembered and passed around everywhere (by the time it made it into the event stream in OH my brain was super-snappy, couldn't stand it anymore). More details in the second link below.
Two references if you'd like
- this is written by the agent, but it's good enough to get a grasp on numbers of occurrences/bloat
https://github.com/All-Hands-AI/OpenHands/issues/10751
- this issue has technically two parts, please ignore the "auth system" part, the most of it is my playing around with how to fix these occurrences; it also includes another widespread thing that makes the code fragile: passing tokens around everywhere
https://github.com/All-Hands-AI/OpenHands/issues/10850calm-artist-7206
09/18/2025, 10:39 PMquiet-night-61895
09/18/2025, 10:40 PM