Tomohisa Takaoka
a08adadfb3
fix: PR creation failure handling + use default branch for base ( #345 )
...
* fix: mark task as failed when PR creation fails
Previously, when PR creation failed (e.g. invalid base branch),
the task was still marked as 'completed' even though the PR was
not created. This fix ensures:
- postExecutionFlow returns prFailed/prError on failure
- executeAndCompleteTask marks the task as failed when PR fails
- selectAndExecuteTask runs postExecution before persisting result
The pipeline path (executePipeline) already handled this correctly
via EXIT_PR_CREATION_FAILED.
* fix: use detectDefaultBranch instead of getCurrentBranch for PR base
Previously, baseBranch for PR creation was set to HEAD's current branch
via getCurrentBranch(). When the user was on a feature branch like
'codex/pr-16-review', PRs were created with --base codex/pr-16-review,
which fails because it doesn't exist on the remote.
Now uses detectDefaultBranch() (via git symbolic-ref refs/remotes/origin/HEAD)
to always use the actual default branch (main/master) as the PR base.
Affected paths:
- resolveTask.ts (takt run)
- selectAndExecute.ts (interactive mode)
- pipeline/execute.ts (takt pipeline)
2026-02-22 20:37:14 +09:00
nrs
dec77e069e
add-model-to-persona-providers ( #324 )
...
* takt: add-model-to-persona-providers
* refactor: loadConfigを廃止しresolveConfigValueにキー単位解決を一元化
loadConfig()による一括マージを廃止し、resolveConfigValue()でキーごとに
global/project/piece/envの優先順位を宣言的に解決する方式に移行。
providerOptionsの優先順位をglobal < piece < project < envに修正し、
sourceトラッキングでOptionsBuilderのマージ方向を制御する。
2026-02-20 11:12:46 +09:00
nrs
e70bceb4a8
takt: extend-slack-task-notification ( #316 )
2026-02-19 23:08:17 +09:00
nrslib
67ae3e8ae5
refactor: piece設定解決とconfig優先順位の参照経路を統一
2026-02-19 11:22:49 +09:00
nrslib
cbde7ac654
refactor: 設定参照をresolveConfigValueへ統一
2026-02-19 10:55:03 +09:00
nrslib
5dc79946f2
refactor: 設定解決をloadConfigへ統一し不要設定を削除
2026-02-19 10:32:59 +09:00
nrs
3de574e81b
takt: github-issue-215-issue ( #294 )
2026-02-18 22:48:50 +09:00
nrs
e52e1da6bf
takt-list ( #271 )
...
* refactor: provider/modelの解決ロジックをAgentRunnerに集約
OptionsBuilderでCLIレベルとstepレベルを事前マージしていたのをやめ、
stepProvider/stepModelとして分離して渡す形に変更。
AgentRunnerが全レイヤーの優先度を一括で解決する。
* takt: takt-list
2026-02-14 11:44:01 +09:00
nrslib
9cc6ac2ca7
ポストエクスキューションの共通化とinstructモードの改善
...
- commit+push+PR作成ロジックをpostExecutionFlowに抽出し、interactive/run/watchの3ルートで共通化
- instructモードはexecuteでcommit+pushのみ(既存PRにpushで反映されるためPR作成不要)
- instructのsave_taskで元ブランチ名・worktree・auto_pr:falseを固定保存(プロンプト不要)
- instructの会話ループにpieceContextを渡し、/goのサマリー品質を改善
- resolveTaskExecutionのautoPrをboolean必須に変更(undefinedフォールバック廃止)
- cloneデフォルトパスを../から../takt-worktree/に変更
2026-02-14 01:02:23 +09:00
nrslib
77cd485c22
worktreeにタスク指示書をコピー
2026-02-11 10:03:30 +09:00
nrslib
3fa99ae0f7
progressをわかりやすくする
2026-02-10 21:44:42 +09:00
nrslib
79ee353990
chore: add completion logs for branch and issue generation
2026-02-10 21:36:11 +09:00
nrs
8cb3c87801
takt: github-issue-204-takt-tasks ( #205 )
2026-02-10 14:26:37 +09:00
nrslib
0145928061
Ctrl+C周りの挙動修正
2026-02-10 06:10:15 +09:00
nrs
4ca414be6b
takt: consolidate-tasks-yaml ( #187 )
2026-02-09 23:29:24 +09:00
nrs
f3b8c772cb
takt: github-issue-142-intarakuteibu ( #147 )
2026-02-08 17:47:22 +09:00
nrslib
b9a2a0329b
auto PR のベースブランチをブランチ作成前の現在ブランチに設定
...
createPullRequest の全呼び出し箇所で base が未指定だったため、
PR が常にリポジトリデフォルトブランチ(main)向けに作成されていた。
ブランチ作成/clone作成の直前に getCurrentBranch() で元ブランチを
取得し、PR作成時に base として渡すように修正。
2026-02-08 07:51:03 +09:00
nrslib
4c0b3c1593
takt: github-issue-98-pr-no-wo-ni-sh
2026-02-06 18:05:19 +09:00
nrslib
38d43f2168
pieceに完全移行
2026-02-04 11:07:41 +09:00
nrslib
b944349d8f
refacotr
2026-02-02 21:52:40 +09:00
nrslib
7d8ba10abb
refactor
2026-02-02 17:11:42 +09:00
nrslib
710d108f53
structuring
2026-02-02 10:14:12 +09:00
nrslib
482fa51266
refactor
2026-02-02 06:02:26 +09:00
nrslib
8990efaebe
fix it
2026-02-02 00:00:54 +09:00
nrslib
d6ac71f0e6
| 作成 | src/task/git.ts | stageAndCommit() 共通関数。git commit ロジックのDRY化 |
...
| 作成 | `src/workflow/instruction-context.ts` | `instruction-builder.ts` からコンテキスト組立ロジック抽出 |
| 作成 | `src/workflow/status-rules.ts` | `instruction-builder.ts` からステータスルールロジック抽出 |
| 変更 | 35ファイル | `getErrorMessage()` 統一、`projectCwd` required 化、`process.cwd()` デフォルト除去、`sacrificeMode` 削除、`loadGlobalConfig` キャッシュ、`console.log` → `blankLine()`、`executeTask` options object 化 |
resolved #44
2026-02-01 22:58:49 +09:00
nrslib
ff7cfb52f7
--workflow にてpathも指定できるように
2026-02-01 20:58:03 +09:00
nrslib
84b5ad7d17
worktree.ts を clone.ts + branchReview.ts に分割(300行超解消)
2026-01-29 13:18:47 +09:00
nrslib
63d6932c01
Stop using git worktree due to Claude Code SDK working at repository root
2026-01-29 11:24:47 +09:00
nrslib
f83b826a3d
improve task name summarization for branch/worktree names
...
- Improve prompt to prevent "this task is..." style output
- Add LLM/romanization option (useLLM: false for romaji fallback)
- Add sanitizeSlug function for safe branch/directory names
- Add wanakana library for Japanese to romaji conversion
2026-01-29 09:28:51 +09:00