|
9 | 9 | from aicore.config import Config |
10 | 10 | from aicore.llm import Llm, LlmConfig |
11 | 11 | from aicore.models import AuthenticationError, ModelError |
12 | | - from aicore.const import STREAM_END_TOKEN, STREAM_START_TOKEN#, REASONING_START_TOKEN, REASONING_STOP_TOKEN |
| 12 | + from aicore.const import STREAM_END_TOKEN, STREAM_START_TOKEN#, REASONING_START_TOKEN, REASONING_STOP_TOKEN |
| 13 | + from codetide.agents.tide.ui.utils import process_thread, run_concurrent_tasks, send_reasoning_msg |
13 | 14 | from codetide.agents.tide.ui.stream_processor import StreamProcessor, MarkerConfig |
14 | | - from codetide.agents.tide.ui.utils import process_thread, run_concurrent_tasks |
15 | 15 | from codetide.agents.tide.ui.defaults import AGENT_TIDE_PORT, STARTERS |
16 | 16 | from codetide.agents.tide.ui.agent_tide_ui import AgentTideUi |
17 | 17 | from chainlit.data.sql_alchemy import SQLAlchemyDataLayer |
@@ -265,28 +265,6 @@ async def on_inspect_context(action :cl.Action): |
265 | 265 |
|
266 | 266 | await inspect_msg.send() |
267 | 267 |
|
268 | | -async def send_reasoning_msg(loading_msg :cl.message, context_msg :cl.Message, agent_tide_ui :AgentTideUi, st :float)->bool: |
269 | | - await loading_msg.remove() |
270 | | - |
271 | | - context_data = { |
272 | | - key: value for key in ["contextIdentifiers", "modifyIdentifiers"] |
273 | | - if (value := getattr(agent_tide_ui.agent_tide, key, None)) |
274 | | - } |
275 | | - context_msg.elements.append( |
276 | | - cl.CustomElement( |
277 | | - name="ReasoningMessage", |
278 | | - props={ |
279 | | - "reasoning": agent_tide_ui.agent_tide.reasoning, |
280 | | - "data": context_data, |
281 | | - "title": f"Thought for {time.time()-st:.2f} seconds", |
282 | | - "defaultExpanded": False, |
283 | | - "showControls": False |
284 | | - } |
285 | | - ) |
286 | | - ) |
287 | | - await context_msg.send() |
288 | | - return True |
289 | | - |
290 | 268 | @cl.on_message |
291 | 269 | async def agent_loop(message: Optional[cl.Message]=None, codeIdentifiers: Optional[list] = None, agent_tide_ui :Optional[AgentTideUi]=None): |
292 | 270 |
|
@@ -510,3 +488,8 @@ def main(): |
510 | 488 | # TODO need to test project path is working as expected... |
511 | 489 |
|
512 | 490 | # TODO need to revisit logic |
| 491 | + # TODO there's a bug that is leaving step messages holding for some reason |
| 492 | + # TODO check initialzie codetide logic, seems to be deserialzied a bit too often |
| 493 | + # TODO review codetide check for updat4es - continously readding untracked files |
| 494 | + |
| 495 | + # TODO check why HF-DEMO-SPACE Auth is being triggereds |
0 commit comments