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(): def get_val():
try: try:
settable = _get_app_attr(app, "_settable_fields", {}) settable = _get_app_attr(app, "_settable_fields", {})
if field_tag in settable: gettable = _get_app_attr(app, "_gettable_fields", {})
attr = settable[field_tag] combined = {**settable, **gettable}
val = _get_app_attr(app, attr, "MISSING") if field_tag in combined:
sys.stderr.write(f"[DEBUG] Hook API: get_value {field_tag} -> attr {attr} -> {val}\n") 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() sys.stderr.flush()
result["value"] = val if val != "MISSING" else None
finally: event.set() finally: event.set()
lock = _get_app_attr(app, "_pending_gui_tasks_lock") lock = _get_app_attr(app, "_pending_gui_tasks_lock")
tasks = _get_app_attr(app, "_pending_gui_tasks") tasks = _get_app_attr(app, "_pending_gui_tasks")