Skip to content

Add issue selector to pjm fix and MCP record_fix#2

Open
hanley-development wants to merge 9 commits into
riponcm:mainfrom
hanley-development:main
Open

Add issue selector to pjm fix and MCP record_fix#2
hanley-development wants to merge 9 commits into
riponcm:mainfrom
hanley-development:main

Conversation

@hanley-development

Copy link
Copy Markdown

Summary

Adds support for closing a specific issue by ID when recording a confirmed fix.

Why

pjm attempt already supports --issue, but pjm fix only closes the active issue pointer. In real workflows, users may create issue #0002 before finishing #0001. Without an issue selector, a verified fix for #0001 can be recorded against the wrong active issue or leave #0001 displayed as open.

Changes

  • Add optional issue parameter to projectmem.commands.fix.run.
  • Add pjm fix --issue <id>.
  • Add optional issue_id parameter to MCP record_fix.
  • Normalize numeric issue IDs so 1, 001, and 0001 all target 0001.
  • Preserve existing behavior when no issue ID is provided.
  • Only clear the active issue marker when fixing the active issue.

Example

pjm fix --issue 0001 "resolved MCP artifact leakage in skill/agent workflows"

hanley-development and others added 9 commits June 15, 2026 13:12
Refactor issue handling in the run function to normalize issue IDs and check for existing issues. Preserve behavior for closing current issues while allowing targeted fixes.
Updated the fix command to accept an optional issue parameter to close a specific issue ID.
Updated function documentation and parameter names for clarity.
Clarify usage of record_fix function with issue_id
Adds import sys.
Adds _console_safe(), _safe_echo(), and _rule().
Replaces Unicode separator rendering with encoding-safe rendering.
Replaces the Unicode failed-attempt marker ✗ with ASCII x.
Uses _safe_echo() for precheck output so hooks do not fail because the terminal cannot encode display characters.
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