Skip to content

feat(plugin): first-session restart UX and enriched standalone output (#1214)#1223

Merged
JeremyDev87 merged 1 commit into
masterfrom
taskmaestro/1775226431/pane-2
Apr 3, 2026
Merged

feat(plugin): first-session restart UX and enriched standalone output (#1214)#1223
JeremyDev87 merged 1 commit into
masterfrom
taskmaestro/1775226431/pane-2

Conversation

@JeremyDev87

Copy link
Copy Markdown
Owner

Summary

  • session-start.py: Print restart hint when hook is newly installed (i18n: en/ko/ja/zh/es)
  • user-prompt-submit.py: Use runtime_mode.is_mcp_available() to branch output:
    • MCP mode: minimal # Mode: X + parse_mode guidance (let MCP handle enrichment)
    • Standalone mode: full enriched ModeEngine.build_instructions() output
  • 6 new tests covering restart message and MCP/standalone branching

Closes #1214

Test plan

  • python3 -m pytest hooks/test_session_start.py hooks/test_user_prompt_submit.py -v — 67 tests passed
  • Restart message: i18n keys in all 5 languages, output on new install, no output when existing
  • Standalone: enriched output with agent name and template content
  • MCP: minimal output with parse_mode hint, no template content
  • No keyword: no output regardless of MCP status
  • yarn lint passes
  • yarn typecheck passes
  • yarn test passes (71 vitest tests)

…#1214)

session-start.py:
- Add i18n "restart_needed" message to all 5 languages
- Print restart hint when hook is newly installed so users know
  mode detection activates on next session

user-prompt-submit.py:
- Import runtime_mode.is_mcp_available() for MCP/standalone detection
- MCP mode: minimal output (mode header + parse_mode hint)
- Standalone mode: full enriched ModeEngine.build_instructions() output
- Fallback: minimal output if imports fail

Tests:
- 3 new tests for restart message (i18n keys, new install output, no
  output when already installed)
- 3 new tests for MCP vs standalone output branching
@vercel

vercel Bot commented Apr 3, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
codingbuddy-landing Ready Ready Preview, Comment Apr 3, 2026 2:39pm

@JeremyDev87 JeremyDev87 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Review complete — all comments addressed

Code Review:

  • session-start.py: restart_needed i18n message added in all 5 languages (en, ko, ja, zh, es)
  • Message shown only when installed_hook=True (new install, not re-register)
  • user-prompt-submit.py: MCP/standalone branching with runtime_mode
  • Tests: TestRestartMessage class with i18n key validation + new install output test
  • No unused imports, clean integration with existing i18n system
  • CI: 28/28 checks pass

LGTM

@JeremyDev87 JeremyDev87 self-assigned this Apr 3, 2026
@JeremyDev87 JeremyDev87 merged commit b85b5f2 into master Apr 3, 2026
28 checks passed
@JeremyDev87 JeremyDev87 deleted the taskmaestro/1775226431/pane-2 branch April 3, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(plugin): first-session restart UX and enriched standalone hook output

1 participant