@devries-cameron20 / t3code Mirror · read-only / commits / 8395f20124
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 22, 00:45 UTC

fix(web): editing a scheduled task shows its saved time when the hour has one digit (#29851)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

Alex Southwell committed Nov 10, 2026 at 01:32 UTC 8395f20124488c3bcd4daced642e1dce6641e28c
2 files changed +12 -1
apps/web/src/components/settings/scheduledTasksSettings.logic.test.ts
+10
@@ -172,6 +172,16 @@ describe("editing scheduled task branch settings", () => {
172 });
173 });
174
175 +describe("fixed-time scheduled tasks", () => {
176 + it("pads a stored single-digit hour so the time input shows it", () => {
177 + const draft = taskToDraft({
178 + ...legacyTask,
179 + schedule: { type: "fixed_time", timeOfDay: "9:05" },
180 + });
181 + expect(draft.timeOfDay).toBe("09:05");
182 + });
183 +});
184 +
185 describe("scheduled task destination", () => {
186 it("unbinding leaves the shared checkout for a new worktree from the remote", () => {
187 const rootBound = taskToDraft({
apps/web/src/components/settings/scheduledTasksSettings.logic.ts
+2 -1
@@ -253,7 +253,8 @@ export function taskToDraft(task: ScheduledTask): DraftState {
253 scheduleMode: schedule.type === "fixed_time" ? "fixed" : schedule.type,
254 intervalMinutes:
255 schedule.type === "interval" ? String(Math.max(1, schedule.everyMs / 60_000)) : "15",
256 - timeOfDay: schedule.type === "fixed_time" ? schedule.timeOfDay : "09:00",
256 + // A time input shows nothing for an unpadded hour such as 9:05, which agents may save.
257 + timeOfDay: schedule.type === "fixed_time" ? schedule.timeOfDay.padStart(5, "0") : "09:00",
258 runAt: schedule.type === "once" ? toDateTimeLocalValue(new Date(schedule.runAt)) : "",
259 savedRunAt: schedule.type === "once" ? schedule.runAt : "",
260 weekdays,