Skip to content

[spark-compete] fix: remove internal module paths from CLI output and status notes#1427

Open
Esc1200 wants to merge 1 commit into
vibeforge1111:masterfrom
Esc1200:esc1200/fix/module-path-leak
Open

[spark-compete] fix: remove internal module paths from CLI output and status notes#1427
Esc1200 wants to merge 1 commit into
vibeforge1111:masterfrom
Esc1200:esc1200/fix/module-path-leak

Conversation

@Esc1200

@Esc1200 Esc1200 commented Jun 7, 2026

Copy link
Copy Markdown

spark-compete-hotfix-v1 packet

team: drophub_sir (esc1200, drophub_sir, spark-agent)
pr_author: Esc1200
repo: vibeforge1111/spark-cli


actual_behavior

cli.py lines 4212, 4291, 4301, 4316, 4328 leak internal module filesystem paths in gateway status notes (e.g., "connected spark-researcher at {researcher.path}", "activated domain-chip-memory at {memory.path}"). Lines 4600 and 5073 leak module paths in list output and install output.

expected_behavior

CLI output should show module names only, not internal filesystem paths. Status notes should not include the "at {path}" suffix.

repro_steps

  1. Run spark setup to configure gateway modules.
  2. Observe status notes like "connected spark-researcher at /home/user/.spark/modules/spark-researcher" leaking internal paths.
  3. Run spark list and observe the last tab-separated column contains full filesystem paths.
  4. Run spark install <module> and observe "Installed {name} from /path/to/module" output.

before_after_proof

Before: 7 locations in cli.py interpolate internal filesystem paths into user-visible output.
After: All 7 locations replaced with module name only. Line 4212 prints "Profile env: {gateway} (profile {profile})". Lines 4291, 4301, 4316, 4328 drop the "at {path}" suffix. Line 4600 uses module.name instead of module.path. Line 5073 prints "Installed {module.name}" without "from {path}".

tests_or_smoke

Verified via git diff that all 7 leaking print/format statements no longer interpolate filesystem paths. Python syntax check passed on modified file.

review_claim

duplicate_notes: No prior PRs address this specific set of 7 path leaks in gateway status notes, list output, and install output.
risk_notes: Low risk. Replacing interpolated path values with module name strings is a safe, backwards-compatible change.

Replaced leaked filesystem paths with module names only in:
- configure_telegram_profile: profile env path (line 4212)
- initialize_builder_runtime_home: researcher, memory, voice, and
  Graphiti sidecar status notes (lines 4291, 4301, 4316, 4328)
- cmd_list: list output column (line 4600)
- install_modules: install confirmation message (line 5073)

These paths could expose internal directory structure to users and
should not appear in CLI output.
@Esc1200 Esc1200 changed the title fix: remove internal module paths from CLI output and status notes [spark-compete] fix: remove internal module paths from CLI output and status notes Jun 7, 2026
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