Skip to content

Reorganize long-running service rules into lifecycle structure#50

Merged
VdustR merged 2 commits intomainfrom
claude-md/long-running-process-lifecycle
Apr 16, 2026
Merged

Reorganize long-running service rules into lifecycle structure#50
VdustR merged 2 commits intomainfrom
claude-md/long-running-process-lifecycle

Conversation

@VdustR
Copy link
Copy Markdown
Owner

@VdustR VdustR commented Apr 16, 2026

Summary

  • Restructure "Long-Running Service Reuse" → "Long-Running Process Lifecycle" with three phases: Before Starting, Reuse vs Restart, Before Stopping
  • Add rule: never kill/close a long-running process without user confirmation
  • Fix contradiction between auto-kill restart and shutdown confirmation rules

Test plan

  • Verify CLAUDE.md renders correctly
  • Confirm no duplicate content between Applies to and Before Stopping

🤖 Generated with Claude Code

Restructure "Long-Running Service Reuse" into "Long-Running Process Lifecycle"
with three phases: Before Starting, Reuse vs Restart, Before Stopping. Add rule
requiring user confirmation before killing any long-running process.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 16, 2026

⚠️ No Changeset found

Latest commit: a30a7be

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the CLAUDE.md guide to refine the lifecycle management of long-running processes, emphasizing user confirmation before stopping or killing instances. The changes restructure the process detection logic and clarify the 'Reuse vs Restart' decision-making process. Review feedback pointed out logical contradictions between the general requirement for confirmation and cases where a user explicitly requests a restart; suggestions were made to unify these rules and avoid redundant confirmation prompts.

Comment thread .claude/CLAUDE.md Outdated
Comment thread .claude/CLAUDE.md Outdated
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b4ef23be8e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .claude/CLAUDE.md Outdated
Reuse vs Restart now defers to Before Stopping rules instead of
defining its own kill policy. Before Stopping consolidates to two
clear cases: explicit user instruction (no confirmation needed)
vs everything else (confirmation required).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@VdustR VdustR merged commit d87956c into main Apr 16, 2026
@VdustR VdustR deleted the claude-md/long-running-process-lifecycle branch April 16, 2026 07:15
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