still in regression hell

This commit is contained in:
2026-03-06 21:28:39 -05:00
parent f65e9b40b2
commit b88fdfde03

View File

@@ -99,12 +99,14 @@ class HookHandler(BaseHTTPRequestHandler):
def get_val():
try:
settable = _get_app_attr(app, "_settable_fields", {})
if field_tag in settable:
attr = settable[field_tag]
val = _get_app_attr(app, attr, "MISSING")
sys.stderr.write(f"[DEBUG] Hook API: get_value {field_tag} -> attr {attr} -> {val}\n")
gettable = _get_app_attr(app, "_gettable_fields", {})
combined = {**settable, **gettable}
if field_tag in combined:
attr = combined[field_tag]
result["value"] = _get_app_attr(app, attr, None)
else:
sys.stderr.write(f"[DEBUG] Hook API: field {field_tag} not found in settable or gettable\n")
sys.stderr.flush()
result["value"] = val if val != "MISSING" else None
finally: event.set()
lock = _get_app_attr(app, "_pending_gui_tasks_lock")
tasks = _get_app_attr(app, "_pending_gui_tasks")