Skip to content

chore: sync main into staging - #247

Closed
EricNGOntos wants to merge 6 commits into
stagingfrom
chore/wuchengke/sync-main-to-staging-20260809
Closed

chore: sync main into staging#247
EricNGOntos wants to merge 6 commits into
stagingfrom
chore/wuchengke/sync-main-to-staging-20260809

Conversation

@EricNGOntos

Copy link
Copy Markdown
Contributor

Summary

Test plan

  • Confirm staging deploy workflow runs after merge
  • Smoke retrieval + document parse on staging
  • Verify this does not publish production (release still required)

Made with Cursor

gdccyuen and others added 6 commits August 3, 2026 15:38
#236)

When last_context (the preceding markdown text) is very long, the
generated image filename exceeds the OS 255-byte limit and os.rename
fails with OSError ENAMETOOLONG. Truncate to 60 chars after sanitization.
* fix: share one 80-char cap for image and table asset filenames

Unify the post-#236 image context truncate with table header naming so
cosmetic asset stems use a single MAX_ASSET_FILE_NAME_CHARS constant.

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix: handle None from path_handle before truncating image titles

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
Dashboard still sends result_mode in job creation requests but the
API removed it. Add to _PUBLIC_COMPATIBILITY_EXTRA_FIELDS so it's
silently ignored instead of rejecting the whole request with 400.
- Added DOC_PROFILE_FILENAME to persist anatomy map artifacts for better debugging.
- Updated hierarchy_locator to retain original TOC headings while normalizing titles.
- Introduced TOC_VLM_MAX_TOKENS for consistent token limits in VLM calls.
- Refactored rendering logic in extract_toc_with_boundaries to handle multiple pages.
- Improved evidence extraction from confirmation items in VLM processing.
- Adjusted zip package writer to conditionally include TOC hierarchies based on parse track.
- Removed the obsolete 'verdict_now' action, consolidating decision-making under 'tool_call'.
- Updated prompts and instructions to clarify the executor's role in handling actions and verdicts.
- Enhanced the handling of legacy actions to ensure compatibility with the new decision structure.
- Refactored the logic in the executor to enforce 'tool_call' as the only valid action, improving clarity and maintainability.
- Adjusted the planner's behavior to treat 'verdict_now' as a non-finish signal, delegating success/abort handling to the executor.
refactor: document-agent profile protocol and TOC boundary tools
@EricNGOntos

Copy link
Copy Markdown
Contributor Author

Opened by mistake; intended sync was local budget WIP on feat/wuchengke/2026-08-09, not main→staging.

@EricNGOntos EricNGOntos closed this Aug 9, 2026
)
from app.services.document_agent.planner.planner import _parse_profile_and_decision
from app.services.document_agent.registry import REGISTRY
from app.services.document_agent import tools as _registered_tools # noqa: F401
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.

3 participants