Skip to content

settings

tit.server.routes.settings

GET/PUT /api/settings (v1).

Two files, read-modify-write with an atomic replace on every write:

  • telemetry.json (user-level config dir, unchanged schema/location -- tit.telemetry.load_config/save_config) for telemetry.{consented, enabled}. consented maps to the existing consent_shown field (has the user been asked, regardless of answer); enabled is the existing field of that name.
  • code/ti-toolbox/config/settings.json (project-level, new in v1 -- no prior file covered this shape) for panels (replaces extensions.json's {"extensions": {name: bool}} with a plain enabled list), theme and agent_auto_submit. A retired key an older file still carries (image_tag, allow_unsafe_overrides) is never read back.

Telemetry

Bases: BaseModel

contracts/openapi.yaml's Telemetry.

Settings

Bases: BaseModel

contracts/openapi.yaml's Settings -- the whole document GET returns and PUT takes.

agent_auto_submit

agent_auto_submit() -> bool

Project setting: may an agent submit jobs directly? Off (the default) means it proposes.

Source code in tit/server/routes/settings.py
def agent_auto_submit() -> bool:
    """Project setting: may an agent submit jobs directly? Off (the default) means it proposes."""
    return _load_project_settings().get("agent_auto_submit") is True