René's URL Explorer Experiment


Title: fix(tools): harden UpdateTodoList for local LLM task JSON quirks by JessicaMulein · Pull Request #548 · cecli-dev/cecli · GitHub

Open Graph Title: fix(tools): harden UpdateTodoList for local LLM task JSON quirks by JessicaMulein · Pull Request #548 · cecli-dev/cecli

X Title: fix(tools): harden UpdateTodoList for local LLM task JSON quirks by JessicaMulein · Pull Request #548 · cecli-dev/cecli

Description: Summary Hardens UpdateTodoList so local models can pass tasks as a JSON string, char-split arrays, or brace-prefixed strings without breaking format_output or writing garbage one-character “tasks” to todo.txt. Problem On Ollama and similar local models we routinely see: tasks passed as a JSON string instead of a parsed array Character-split “arrays” from the model Strings that start with { but are not valid JSON main already has normalize_json_array() in cecli.tools.utils.helpers (used by Grep and others), but UpdateTodoList still used naive json.loads + a loop that treated each character as a task in format_output. Solution normalize_task_items() / format_task_lines() — shared coercion for execute and format_output coerce_task_item() — dict passthrough; invalid {…} strings fall back to plain task text format_output — json.loads guard; surface ToolError from normalization instead of silent corruption LIST_PARAMS = ["tasks"] preserved for base tool list handling Tests New file: tests/tools/test_update_todo_list.py (7 cases) Test Covers test_normalize_task_items_does_not_split_characters Char-split regression test_format_task_lines_accepts_json_string Tasks as embedded JSON string test_format_output_accepts_tasks_as_json_string End-to-end format_output test_format_output_reports_invalid_tasks_json Clear error on bad tasks test_coerce_task_item_plain_string_starting_with_brace Invalid { prefix fallback pytest tests/tools/test_update_todo_list.py -v # 7 passed (local run) pytest tests/helpers/monorepo -q # 24 passed — no monorepo regression on this branch Scope In scope: cecli/tools/update_todo_list.py, tests/tools/test_update_todo_list.py, minor import-order touch in tests/tools/test_get_lines.py. Out of scope: General glued-tool JSON (parse_tool_arguments), Grep, session encryption — separate PRs if still needed on main. Checklist Uses existing normalize_json_array (no duplicate helper stack) execute and format_output share the same normalization path Tests added and passing locally No change to clone/multi-repo workspace behavior

Open Graph Description: Summary Hardens UpdateTodoList so local models can pass tasks as a JSON string, char-split arrays, or brace-prefixed strings without breaking format_output or writing garbage one-character “tasks” ...

X Description: Summary Hardens UpdateTodoList so local models can pass tasks as a JSON string, char-split arrays, or brace-prefixed strings without breaking format_output or writing garbage one-character “tasks” ...

Opengraph URL: https://github.com/cecli-dev/cecli/pull/548

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:1a5a023a-22f1-5811-2fd7-2f1df1fec559
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA51C:1B5FB5:939B37:D4BE37:6A6215D7
html-safe-noncee6b184bac48722d9a5fc6e8cefc5dd19b6084a556208954d47fd6f0b38ec2f89
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTFDOjFCNUZCNTo5MzlCMzc6RDRCRTM3OjZBNjIxNUQ3IiwidmlzaXRvcl9pZCI6IjI0MzQxMjQ2NTYxMDg3NzA3NzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacd4589cf9d9e46b97b0e4cc0f00c16a134f59fd6ed8815e9c1ffe6a725097054f
hovercard-subject-tagpull_request:3789927132
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/cecli-dev/cecli/pull/548/files
twitter:imagehttps://avatars.githubusercontent.com/u/3766240?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/3766240?s=400&v=4
og:image:altSummary Hardens UpdateTodoList so local models can pass tasks as a JSON string, char-split arrays, or brace-prefixed strings without breaking format_output or writing garbage one-character “tasks” ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneccf61cb7ab435725b916ed640f57c45b2c4721db9469bc32656080efc5214b3e
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/cecli-dev/cecli git https://github.com/cecli-dev/cecli.git
octolytics-dimension-user_id250452847
octolytics-dimension-user_logincecli-dev
octolytics-dimension-repository_id1030985330
octolytics-dimension-repository_nwocecli-dev/cecli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forktrue
octolytics-dimension-repository_parent_id638629097
octolytics-dimension-repository_parent_nwoAider-AI/aider
octolytics-dimension-repository_network_root_id638629097
octolytics-dimension-repository_network_root_nwoAider-AI/aider
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasea7585b3d2ee639495a70ce464d0a18bad88ea12c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/cecli-dev/cecli/pull/548/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcecli-dev%2Fcecli%2Fpull%2F548%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcecli-dev%2Fcecli%2Fpull%2F548%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=cecli-dev%2Fcecli
Reloadhttps://github.com/cecli-dev/cecli/pull/548/files
Reloadhttps://github.com/cecli-dev/cecli/pull/548/files
Reloadhttps://github.com/cecli-dev/cecli/pull/548/files
Please reload this pagehttps://github.com/cecli-dev/cecli/pull/548/files
cecli-dev https://github.com/cecli-dev
ceclihttps://github.com/cecli-dev/cecli
Aider-AI/aiderhttps://github.com/Aider-AI/aider
Notifications https://github.com/login?return_to=%2Fcecli-dev%2Fcecli
Fork 45 https://github.com/login?return_to=%2Fcecli-dev%2Fcecli
Star 385 https://github.com/login?return_to=%2Fcecli-dev%2Fcecli
Code https://github.com/cecli-dev/cecli
Issues 30 https://github.com/cecli-dev/cecli/issues
Pull requests 9 https://github.com/cecli-dev/cecli/pulls
Actions https://github.com/cecli-dev/cecli/actions
Projects https://github.com/cecli-dev/cecli/projects
Security and quality 0 https://github.com/cecli-dev/cecli/security
Insights https://github.com/cecli-dev/cecli/pulse
Code https://github.com/cecli-dev/cecli
Issues https://github.com/cecli-dev/cecli/issues
Pull requests https://github.com/cecli-dev/cecli/pulls
Actions https://github.com/cecli-dev/cecli/actions
Projects https://github.com/cecli-dev/cecli/projects
Security and quality https://github.com/cecli-dev/cecli/security
Insights https://github.com/cecli-dev/cecli/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fcecli-dev%2Fcecli%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fcecli-dev%2Fcecli%2Fissues%2Fnew%2Fchoose
JessicaMuleinhttps://github.com/JessicaMulein
cecli-dev:mainhttps://github.com/cecli-dev/cecli/tree/main
Digital-Defiance:pr/update-todo-list-jsonhttps://github.com/Digital-Defiance/cecli/tree/pr/update-todo-list-json
Conversation 0 https://github.com/cecli-dev/cecli/pull/548
Commits 1 https://github.com/cecli-dev/cecli/pull/548/commits
Checks 12 https://github.com/cecli-dev/cecli/pull/548/checks
Files changed https://github.com/cecli-dev/cecli/pull/548/files
Please reload this pagehttps://github.com/cecli-dev/cecli/pull/548/files
fix(tools): harden UpdateTodoList for local LLM task JSON quirks https://github.com/cecli-dev/cecli/pull/548/files#top
Show all changes 1 commit https://github.com/cecli-dev/cecli/pull/548/files
7c0b53c fix(tools): harden UpdateTodoList for local LLM task JSON quirks JessicaMulein May 28, 2026 https://github.com/cecli-dev/cecli/pull/548/commits/7c0b53c93b2d8af56c590baa08c58581e23d3c3e
Clear filters https://github.com/cecli-dev/cecli/pull/548/files
Please reload this pagehttps://github.com/cecli-dev/cecli/pull/548/files
Please reload this pagehttps://github.com/cecli-dev/cecli/pull/548/files
update_todo_list.py https://github.com/cecli-dev/cecli/pull/548/files#diff-3d3a3555ed7001ad1fb998d7a6ddaa07c3c2c290a7ef6b46092a3be515a67ef9
test_get_lines.py https://github.com/cecli-dev/cecli/pull/548/files#diff-27787a1d155dbd1bf2deba61bd4136cf6de8e242e0ac3016994bda1227e12fd0
test_update_todo_list.py https://github.com/cecli-dev/cecli/pull/548/files#diff-e4098a150b47cd144aa007d5662586c779637b8f301bcf16500901c2cc0007b0
cecli/tools/update_todo_list.pyhttps://github.com/cecli-dev/cecli/pull/548/files#diff-3d3a3555ed7001ad1fb998d7a6ddaa07c3c2c290a7ef6b46092a3be515a67ef9
View file https://github.com/Digital-Defiance/cecli/blob/7c0b53c93b2d8af56c590baa08c58581e23d3c3e/cecli/tools/update_todo_list.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cecli-dev/cecli/pull/548/{{ revealButtonHref }}
https://github.com/cecli-dev/cecli/pull/548/files#diff-3d3a3555ed7001ad1fb998d7a6ddaa07c3c2c290a7ef6b46092a3be515a67ef9
https://github.com/cecli-dev/cecli/pull/548/files#diff-3d3a3555ed7001ad1fb998d7a6ddaa07c3c2c290a7ef6b46092a3be515a67ef9
https://github.com/cecli-dev/cecli/pull/548/files#diff-3d3a3555ed7001ad1fb998d7a6ddaa07c3c2c290a7ef6b46092a3be515a67ef9
https://github.com/cecli-dev/cecli/pull/548/files#diff-3d3a3555ed7001ad1fb998d7a6ddaa07c3c2c290a7ef6b46092a3be515a67ef9
https://github.com/cecli-dev/cecli/pull/548/files#diff-3d3a3555ed7001ad1fb998d7a6ddaa07c3c2c290a7ef6b46092a3be515a67ef9
https://github.com/cecli-dev/cecli/pull/548/files#diff-3d3a3555ed7001ad1fb998d7a6ddaa07c3c2c290a7ef6b46092a3be515a67ef9
tests/tools/test_get_lines.pyhttps://github.com/cecli-dev/cecli/pull/548/files#diff-27787a1d155dbd1bf2deba61bd4136cf6de8e242e0ac3016994bda1227e12fd0
View file https://github.com/Digital-Defiance/cecli/blob/7c0b53c93b2d8af56c590baa08c58581e23d3c3e/tests/tools/test_get_lines.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cecli-dev/cecli/pull/548/{{ revealButtonHref }}
https://github.com/cecli-dev/cecli/actions/runs/26836529814/job/79131802945?pr=548
https://github.com/cecli-dev/cecli/pull/548/files#diff-27787a1d155dbd1bf2deba61bd4136cf6de8e242e0ac3016994bda1227e12fd0
tests/tools/test_update_todo_list.pyhttps://github.com/cecli-dev/cecli/pull/548/files#diff-e4098a150b47cd144aa007d5662586c779637b8f301bcf16500901c2cc0007b0
View file https://github.com/Digital-Defiance/cecli/blob/7c0b53c93b2d8af56c590baa08c58581e23d3c3e/tests/tools/test_update_todo_list.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cecli-dev/cecli/pull/548/{{ revealButtonHref }}
Please reload this pagehttps://github.com/cecli-dev/cecli/pull/548/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.