mirror of
https://github.com/andrewyng/openworker.git
synced 2026-09-14 16:30:30 +00:00
fix: stop artifact walk entering OS app-data dirs; context bar off by default
The artifacts scan used rglob and filtered after descending, so a home directory workspace walked into ~/Library and triggered the macOS App Data consent prompt on every turn. Walk with pruning instead, and skip Library / AppData in search too. The composer chip now shows the session total by default, with the context window bar behind a Settings toggle.
This commit is contained in:
@@ -1367,6 +1367,11 @@ def create_app(manager: SessionManager) -> FastAPI:
|
||||
# Sidebar: sessions shown per group before "Show more" (owner ask, 2026-07-03).
|
||||
return manager.set_sessions_peek((body or {}).get("sessions_peek", 5))
|
||||
|
||||
@app.post("/v1/settings/context-bar")
|
||||
def settings_set_context_bar(body: dict) -> dict[str, Any]:
|
||||
# Composer: show the context-window fill bar, or just the popover (owner ask).
|
||||
return manager.set_context_bar((body or {}).get("context_bar", True))
|
||||
|
||||
@app.post("/v1/settings/pdf")
|
||||
def settings_set_pdf(body: dict) -> dict[str, Any]:
|
||||
# Token savings (owner ask, 2026-07-17): fallback mode for models without native
|
||||
|
||||
Reference in New Issue
Block a user