fix: Diagrams dir and new discussion path improvements
- runner.py: Pass diagrams-dir relative to discussion file location - gui.py: Default new discussions to discussions/ subdirectory - .gitignore: Ignore docs symlink (points to project-docs) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
c9e84d9241
commit
f3c6ba4e5e
|
|
@ -52,3 +52,6 @@ test_*.md
|
||||||
|
|
||||||
# Generated diagrams (keep examples/diagrams/ for documentation)
|
# Generated diagrams (keep examples/diagrams/ for documentation)
|
||||||
diagrams/
|
diagrams/
|
||||||
|
|
||||||
|
# Documentation symlink (points to project-docs)
|
||||||
|
docs
|
||||||
|
|
|
||||||
|
|
@ -800,6 +800,9 @@ def run_turn(
|
||||||
# Step 3: Call each participant
|
# Step 3: Call each participant
|
||||||
responses_for_appender = []
|
responses_for_appender = []
|
||||||
|
|
||||||
|
# Determine diagrams directory relative to discussion file
|
||||||
|
diagrams_dir = discussion_path.parent / "diagrams"
|
||||||
|
|
||||||
for alias in participants_to_call:
|
for alias in participants_to_call:
|
||||||
tool_name = f"discussion-{alias}"
|
tool_name = f"discussion-{alias}"
|
||||||
log(f"Calling {alias}...")
|
log(f"Calling {alias}...")
|
||||||
|
|
@ -809,6 +812,8 @@ def run_turn(
|
||||||
args.extend(["--callout", callout])
|
args.extend(["--callout", callout])
|
||||||
if provider:
|
if provider:
|
||||||
args.extend(["--provider", provider])
|
args.extend(["--provider", provider])
|
||||||
|
# Always pass diagrams-dir relative to discussion file
|
||||||
|
args.extend(["--diagrams-dir", str(diagrams_dir)])
|
||||||
|
|
||||||
try:
|
try:
|
||||||
participant_result = _call_tool(tool_name, discussion_content, args)
|
participant_result = _call_tool(tool_name, discussion_content, args)
|
||||||
|
|
|
||||||
|
|
@ -2544,11 +2544,13 @@ class DiscussionGUI:
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self._show_error(f"Failed to create discussion: {e}")
|
self._show_error(f"Failed to create discussion: {e}")
|
||||||
|
|
||||||
# Determine initial output directory
|
# Determine initial output directory - default to discussions/ subdirectory
|
||||||
if self.current_discussion:
|
if self.current_discussion:
|
||||||
initial_dir = self.current_discussion.path.parent
|
initial_dir = self.current_discussion.path.parent
|
||||||
else:
|
else:
|
||||||
initial_dir = self.discussions_dir if self.discussions_dir else Path.cwd()
|
base_dir = self.discussions_dir if self.discussions_dir else Path.cwd()
|
||||||
|
# Default to discussions/ subdirectory (like CLI does)
|
||||||
|
initial_dir = base_dir / "discussions"
|
||||||
|
|
||||||
with dpg.window(label="New Discussion", tag=window_tag,
|
with dpg.window(label="New Discussion", tag=window_tag,
|
||||||
width=550, height=550, pos=[400, 150], no_collapse=True):
|
width=550, height=550, pos=[400, 150], no_collapse=True):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue