a test for a test

This commit is contained in:
2026-03-07 22:29:08 -05:00
parent 6621362c37
commit a65dff4b6d
3 changed files with 11 additions and 6 deletions

View File

@@ -1071,7 +1071,11 @@ def _send_gemini_cli(md_content: str, user_message: str, base_dir: str,
send_payload = payload
if isinstance(payload, list):
send_payload = json.dumps(payload)
resp_data = adapter.send(cast(str, send_payload), safety_settings=safety_settings, system_instruction=sys_instr, model=_model, stream_callback=stream_callback)
try:
resp_data = adapter.send(cast(str, send_payload), safety_settings=safety_settings, system_instruction=sys_instr, model=_model, stream_callback=stream_callback)
except Exception as e:
events.emit("response_received", payload={"provider": "gemini_cli", "model": _model, "usage": {}, "latency": 0, "round": r_idx, "error": str(e)})
raise
cli_stderr = resp_data.get("stderr", "")
if cli_stderr:
sys.stderr.write(f"\n--- Gemini CLI stderr ---\n{cli_stderr}\n-------------------------\n")

View File

@@ -1714,21 +1714,21 @@ class App:
with self._send_thread_lock:
if self.send_thread and self.send_thread.is_alive():
send_busy = True
if imgui.button("Inject File"):
self.show_inject_modal = True
imgui.same_line()
if (imgui.button("Gen + Send") or ctrl_enter) and not send_busy:
self._handle_generate_send()
imgui.same_line()
if imgui.button("MD Only"):
self._handle_md_only()
imgui.same_line()
if imgui.button("Reset"):
self._handle_reset_session()
if imgui.button("Inject File"):
self.show_inject_modal = True
imgui.same_line()
if imgui.button("-> History"):
if self.ui_ai_input:
self.disc_entries.append({"role": "User", "content": self.ui_ai_input, "collapsed": False, "ts": project_manager.now_ts()})
if imgui.button("Reset"):
self._handle_reset_session()
imgui.same_line()
if self.perf_profiling_enabled: self.perf_monitor.end_component("_render_message_panel")
def _render_response_panel(self) -> None: