fix: harden salvaged session and browser improvements
Polish salvaged contributor work before PR review: - read browser inactivity timeout from config with documented fallback - skip redundant v10 trigram backfill before v11 FTS rebuild - show delegate_task goals safely in progress previews - show gateway status model/context without redundant token wording - wire gateway /sessions to shared session-listing helpers - map Ravenwolf author emails for release attribution Co-authored-by: Wolfram Ravenwolf <github.com@wolfram.ravenwolf.de> Co-authored-by: Amy Ravenwolf <amy@ravenwolf.de>
This commit is contained in:
co-authored by
Wolfram Ravenwolf
Amy Ravenwolf
parent
ead38107a2
commit
3e7e9b24d4
@@ -67,7 +67,7 @@ from pathlib import Path
|
||||
from agent.auxiliary_client import call_llm
|
||||
from hermes_constants import get_hermes_home
|
||||
from utils import env_int, is_truthy_value
|
||||
from hermes_cli.config import cfg_get
|
||||
from hermes_cli.config import DEFAULT_CONFIG, cfg_get
|
||||
|
||||
try:
|
||||
from tools.website_policy import check_website_access
|
||||
@@ -1180,8 +1180,13 @@ _cleanup_done = False
|
||||
# Session inactivity timeout (seconds) - cleanup if no activity for this long.
|
||||
# config.yaml is authoritative; BROWSER_INACTIVITY_TIMEOUT remains a legacy
|
||||
# fallback so old deployments keep working if they have not migrated yet.
|
||||
DEFAULT_SESSION_INACTIVITY_TIMEOUT = int(
|
||||
DEFAULT_CONFIG.get("browser", {}).get("inactivity_timeout", 120)
|
||||
)
|
||||
|
||||
|
||||
def _get_session_inactivity_timeout() -> int:
|
||||
result = env_int("BROWSER_INACTIVITY_TIMEOUT", 300)
|
||||
result = env_int("BROWSER_INACTIVITY_TIMEOUT", DEFAULT_SESSION_INACTIVITY_TIMEOUT)
|
||||
try:
|
||||
from hermes_cli.config import read_raw_config
|
||||
cfg = read_raw_config()
|
||||
|
||||
Reference in New Issue
Block a user