Skip to content

Conversation

@waterbang
Copy link
Contributor

Handle cases where sketch data from YAML is stored as dict instead of
string, preventing AttributeError when calling split() on dict objects.

Exception 'dict' object has no attribute 'split'
File "/Users/waterbang/.local/pipx/venvs/cccc-pair/lib/python3.14/site-packages/prompt_toolkit/key_binding/key_processor.py", line 273, in process_keys
    self._process_coroutine.send(key_press)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
  File "/Users/waterbang/.local/pipx/venvs/cccc-pair/lib/python3.14/site-packages/prompt_toolkit/key_binding/key_processor.py", line 188, in _process
    self._call_handler(matches[-1], key_sequence=buffer[:])
    ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/waterbang/.local/pipx/venvs/cccc-pair/lib/python3.14/site-packages/prompt_toolkit/key_binding/key_processor.py", line 323, in _call_handler
    handler.call(event)
    ~~~~~~~~~~~~^^^^^^^
  File "/Users/waterbang/.local/pipx/venvs/cccc-pair/lib/python3.14/site-packages/prompt_toolkit/key_binding/key_bindings.py", line 127, in call
    result = self.handler(event)
  File "/Users/waterbang/.local/pipx/venvs/cccc-pair/lib/python3.14/site-packages/prompt_toolkit/key_binding/bindings/mouse.py", line 275, in _
    return handler(
        MouseEvent(
    ...<4 lines>...
        )
    )
  File "/Users/waterbang/.local/pipx/venvs/cccc-pair/lib/python3.14/site-packages/prompt_toolkit/layout/containers.py", line 1846, in mouse_handler
    result = self.content.mouse_handler(
        MouseEvent(
    ...<4 lines>...
        )
    )
  File "/Users/waterbang/Desktop/waterbang/ai/wall-e/.cccc/tui_ptk/app.py", line 958, in custom_mouse_handler
    on_task_click()
    ~~~~~~~~~~~~~^^
  File "/Users/waterbang/Desktop/waterbang/ai/wall-e/.cccc/tui_ptk/app.py", line 2854, in on_task_click
    self._toggle_task_panel()
    ~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/Users/waterbang/Desktop/waterbang/ai/wall-e/.cccc/tui_ptk/app.py", line 3689, in _toggle_task_panel
    self._show_unified_detail_dialog()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/Users/waterbang/Desktop/waterbang/ai/wall-e/.cccc/tui_ptk/app.py", line 3902, in _show_unified_detail_dialog
    text=get_content(),
         ~~~~~~~~~~~^^
  File "/Users/waterbang/Desktop/waterbang/ai/wall-e/.cccc/tui_ptk/app.py", line 3762, in get_content
    return self.task_panel.get_detail_view(width=dialog_width - 8)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/waterbang/Desktop/waterbang/ai/wall-e/.cccc/tui_ptk/task_panel.py", line 695, in get_detail_view
    content = self._render_sketch_content(INNER)
  File "/Users/waterbang/Desktop/waterbang/ai/wall-e/.cccc/tui_ptk/task_panel.py", line 902, in _render_sketch_content
    for line in sketch.split('\n'):
                ^^^^^^^^^^^^

Exception 'dict' object has no attribute 'split'
Press ENTER to continue... 

…lly apply configuration optimization suggestions through adaptive learning and performance analysis.
…ved the data processing logic of self-optimization checks.
…er config tuning

Core Changes:
- Removed cooldown_seconds parameter from adaptive learner, performance analyzer, and optimization bounds
- Introduced conversation_analyzer module integration for FOREMAN_TASK.md optimization
- Added --task flag to focus on task optimization via conversation analysis
- Enhanced peer directive generation to include conversation-based suggestions (high-frequency tasks, recurring risks, change hotspots)
- Conversation
…with TUI commands

Core Changes:
- Introduced extract_foreman_insights() to parse latest foreman stdout.txt for insight blocks and Item() structures
- Enhanced update_foreman_task() to append "Latest patrol findings" section with insights, outcomes, and next steps
- Modified run_conversation_analysis() to extract foreman insights even with insufficient conversation data
- Integrated foreman_scheduler into command queue runtime for proper /
- Enhanced get_sketch() to handle dict/list YAML structures
- Convert dict sketches to formatted JSON strings for readability
- Add type checking for str/dict/other sketch formats
- Ensure sketch data is always returned as displayable string or None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant