Repository navigation
fix(list): list anytime tasks due later in upcoming, as the app does - #288
Merged
Merged
Conversation
The app's Upcoming lists an Anytime to-do with no start date and a deadline after today under the deadline's day. things upcoming only took Someday-bucket rows with a start date, so it missed them. Upcoming now takes both, orders and date-filters by COALESCE(startDate, deadline).
ryanlewis
force-pushed
the
fix/upcoming-deadlines
branch
from
September 30, 2026 03:32
0f0fc1d to
3185be3
Compare
This was referenced Sep 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
things upcomingleft out tasks that Things.app shows in Upcoming. If a task sits in Anytime with no start date and has a deadline after today, the app lists it in Upcoming on the deadline's day. The CLI did not list it at all. An agent readingupcomingnever saw those deadlines coming.Measured against the live database and the app on 30 Sep 2026: the app's Upcoming held 36 rows and
things upcomingreturned 33. Two of the three missing rows were open Anytime tasks with no start date and a deadline later this month or next. The third was closed today (see below). With this change the CLI returns the 35 open rows in the same order as the app.Cause
The
upcomingview only took rows in the Someday bucket with a start date (start = 2 AND startDate IS NOT NULL). The app also puts an undated Anytime task with a future deadline in Upcoming, and sorts it by that deadline among the rows scheduled for the same day.Change
upcomingalso takes undated Anytime tasks (start = 1,type = 0) whose deadline is after today. Today's date is worked out in SQL the same way the Logbook's held-in-place test works it out.COALESCE(startDate, deadline), thentodayIndexas before.--on/--from/--toonupcomingcompare the same date, sothings upcoming --on <deadline>finds the task.A task like this now comes back from both
upcomingandanytime, as it does in the app. The docs and the bundled skill say so, and tell agents to merge the two onuuid.Tests
TestUpcomingListsAnytimeToDosDueLaterfailed before the fix: both deadline-only rows were missing, and--onmissed one.TestListTasksViewsnow expects the base fixture'st-deadlinerow inupcoming. The golden SQL is regenerated.Not in scope: the app also keeps a task closed today in Upcoming, struck through, but
upcomingdoes not take--include-completed.Ran as part of a weekly bughunt routine.