calm-artist-7206
09/16/2025, 4:30 PM~/.openhands/ is the place for app configuration (settings.json) => Settings, with LLMSettings, etc
• this is also the place for conversation storage
• the server, at least (but probably also CLI), could wrap all of these paths into an abstraction that it will, later, override - e.g. ConversationPathscalm-artist-7206
09/16/2025, 4:32 PMquick-window-91705
09/16/2025, 4:34 PMwooden-umbrella-84098
09/16/2025, 4:39 PMstraight-sundown-84319
09/16/2025, 4:40 PMsession_api_key and cors_origins )wooden-umbrella-84098
09/16/2025, 4:40 PMDEFAULT_CONFIGURATION_PATHwooden-umbrella-84098
09/16/2025, 4:40 PM.load_from_default_config_path()wooden-umbrella-84098
09/16/2025, 4:40 PMwooden-umbrella-84098
09/16/2025, 4:41 PMConfig class, but instead using the existing pydantic structurescalm-artist-7206
09/16/2025, 4:42 PMMy hardest opinion here is that the SDK should not do any auto-loading of configurationThere should be a
~/.openhands/settings.json , and then CLI and server can load that?calm-artist-7206
09/16/2025, 4:43 PMstraight-sundown-84319
09/16/2025, 4:44 PMcalm-artist-7206
09/16/2025, 4:45 PMstraight-sundown-84319
09/16/2025, 4:45 PMstraight-sundown-84319
09/16/2025, 4:46 PMstraight-sundown-84319
09/16/2025, 4:46 PM{
"llm": {
"model": "litellm_proxy/anthropic/claude-sonnet-4-20250514",
"api_key": "******",
"base_url": "https://llm-proxy.staging.all-hands.dev"
},
"tools": [
{
"name": "BashTool",
"params": {
"working_dir": "workspace/project"
}
},
{
"name": "FileEditorTool",
"params": {}
},
{
"name": "TaskTrackerTool",
"params": {
"save_dir": "workspace/project"
}
}
],
"initial_message": {
"role": "user",
"content": [
{
"type": "text",
"text": "Flip a coin!"
}
]
}
}straight-sundown-84319
09/16/2025, 4:47 PMstraight-sundown-84319
09/16/2025, 4:48 PMstraight-sundown-84319
09/16/2025, 4:48 PMwooden-umbrella-84098
09/16/2025, 4:50 PMJust to make sure I understand the concern here, why exactly is this a problem or for what?
> My hardest opinion here is that the SDK should not do any auto-loading of configurationIMO a user of the SDK (or any python library) should be able to determine behavior of the library by looking at the code. Libraries should not depend on the environment (e.g. presence of files or env vars)
calm-artist-7206
09/16/2025, 4:52 PMSettings , with no default locations, just all the things
• define a UserContext, with this default location as an attribute
• user context will be a dependency, to be recomputed/overridden by other server apps (e.g. a multiuser app)calm-artist-7206
09/16/2025, 4:52 PMstraight-sundown-84319
09/16/2025, 4:55 PMcalm-artist-7206
09/16/2025, 4:56 PMsettings.json in their home directory, that’s why we seem to need to create it here, in a way you can extendstraight-sundown-84319
09/16/2025, 4:58 PMcalm-artist-7206
09/16/2025, 4:58 PMcalm-artist-7206
09/16/2025, 4:59 PMstraight-sundown-84319
09/16/2025, 4:59 PMstraight-sundown-84319
09/16/2025, 4:59 PMcalm-artist-7206
09/16/2025, 5:00 PMstraight-sundown-84319
09/16/2025, 5:00 PMcalm-artist-7206
09/16/2025, 5:00 PMstraight-sundown-84319
09/16/2025, 5:00 PMstraight-sundown-84319
09/16/2025, 5:02 PMchilly-france-44439
09/16/2025, 5:04 PM.from_spec from the SDK to get actual instance restored?calm-artist-7206
09/16/2025, 5:05 PMWithout config, users, billing, etcPlease note that this sentence says “users”, “billing”, which means it refers to a multiuser app, not a local app. That’s fine, but it;s not the same with OH the singleuser app, that needs to be run too :) I think both apps, CLI and server, need to load
~/.openhands stuff. There are also conversations there, of course they already need to load things. So we are just wary of this exact thing: how to load defaults, in a way that allows you to override them.chilly-france-44439
09/16/2025, 5:06 PMagent_spec.json that's dumped directly from AgentSpec and all downstream application can just do Agent.from_spec to resume the state of an agentchilly-france-44439
09/16/2025, 5:07 PMbase_state.json (that's already handled by SDK) to handle anything related to conversationwooden-umbrella-84098
09/16/2025, 5:08 PMAgentSpec to be separate from a pydantic Agent class?straight-sundown-84319
09/16/2025, 5:08 PMunsupported_operations in SaasNestedConversationManager)
So the Agent SDK Server is designed to be somewhere between the old action execution server and the new full nested server but to remove this code smellchilly-france-44439
09/16/2025, 5:08 PMstraight-sundown-84319
09/16/2025, 5:10 PMstraight-sundown-84319
09/16/2025, 5:10 PMchilly-france-44439
09/16/2025, 5:12 PMcalm-artist-7206
09/16/2025, 5:16 PMcalm-artist-7206
09/16/2025, 5:24 PM