Skip to content

fix(git): use stdin for agent commit prompt and safe UTF-8 truncation#248

Open
ZhiAo1120 wants to merge 1 commit into
hanshuaikang:mainfrom
ZhiAo1120:fix/git-commit-message-stdin-and-utf8
Open

fix(git): use stdin for agent commit prompt and safe UTF-8 truncation#248
ZhiAo1120 wants to merge 1 commit into
hanshuaikang:mainfrom
ZhiAo1120:fix/git-commit-message-stdin-and-utf8

Conversation

@ZhiAo1120

Copy link
Copy Markdown
Contributor

Summary

  • pipe commit prompts through stdin for Codex and Claude Code to avoid command-line length limits
  • truncate staged diffs at valid UTF-8 boundaries before invoking the agent
  • keep the change self-contained so it does not depend on the timeout configuration PR

Verification

  • pnpm build
  • cargo check --manifest-path src-tauri/Cargo.toml --quiet

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