Commit Graph
5064 Commits
Author SHA1 Message Date
Pavel 1394a7a0b4 Agent key rotation
Added button to rotate api key. This is required for better UX, now user has to remake agent if key is lost.
A migration is needed to keep track of proper usage + to not leave any orphan entries.
2026-07-25 18:15:56 +02:00
Alex 2b1cd2d404 Merge pull request #2620 from arc53/platform-capabilities
feat: communicate capabilies in prompt and endpoint
2026-07-24 13:56:50 +02:00
Alex 5a558c24f0 fix: minor issue 2026-07-24 12:42:51 +01:00
Alex e1611a18d8 Update lint.yml 2026-07-24 12:26:52 +01:00
Alex 5b8f0a5319 fix: mini utf fix 2026-07-24 12:22:55 +01:00
Alex a53cf918f2 feat: communicate capabilies in prompt and endpoint 2026-07-24 11:57:31 +01:00
Muhammad FurqanandManishMadan2882 b5b150a773 fix: replace print() with logger in encryption.py and classic_rag.py (#2565)
* fix: replace print() with logger in classic_rag.py and encryption.py

Three print() calls bypassed the structured logging system, risking
exposure of rephrased user queries and credential error details to
unmanaged stdout. Replace with logger.debug() / logger.warning() and
add a module-level logger to both files. Also migrate all bare
logging.xxx() calls in classic_rag.py to the module-level logger for
consistency.

* (chore:encryption.py) ruff

---------

Co-authored-by: ManishMadan2882 <manishmadan321@gmail.com>
2026-07-24 05:12:50 +05:30
Pavel be1ac33eb6 Merge pull request #2600 from ManishMadan2882/main
Workflow: Minor UI/UX refinement
2026-07-23 19:29:18 +02:00
dependabot[bot] 2f5efb9aac chore(deps): bump i18next from 26.0.4 to 26.3.6 in /frontend (#2585)
Bumps [i18next](https://github.com/i18next/i18next) from 26.0.4 to 26.3.6.
- [Release notes](https://github.com/i18next/i18next/releases)
- [Changelog](https://github.com/i18next/i18next/blob/master/CHANGELOG.md)
- [Commits](https://github.com/i18next/i18next/compare/v26.0.4...v26.3.6)

---
updated-dependencies:
- dependency-name: i18next
  dependency-version: 26.3.6
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-23 16:01:02 +05:30
dependabot[bot] 965f6b6667 chore(deps): bump react-dom from 19.2.5 to 19.2.8 in /frontend (#2584)
Bumps [react-dom](https://github.com/react/react/tree/HEAD/packages/react-dom) from 19.2.5 to 19.2.8.
- [Release notes](https://github.com/react/react/releases)
- [Changelog](https://github.com/react/react/blob/main/CHANGELOG.md)
- [Commits](https://github.com/react/react/commits/v19.2.8/packages/react-dom)

---
updated-dependencies:
- dependency-name: react-dom
  dependency-version: 19.2.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-23 15:56:10 +05:30
dependabot[bot] 0bacf33104 chore(deps-dev): bump eslint-plugin-prettier in /frontend (#2583)
Bumps [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier) from 5.5.5 to 5.5.6.
- [Release notes](https://github.com/prettier/eslint-plugin-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-plugin-prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-plugin-prettier/compare/v5.5.5...v5.5.6)

---
updated-dependencies:
- dependency-name: eslint-plugin-prettier
  dependency-version: 5.5.6
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-23 15:46:35 +05:30
roshanroy-lang 9d768715ea docs: fix grammatical parallelism and clean up markdown links in README (#2606)
* docs: fix grammatical parallelism and clean up markdown links in README

- Fixed grammatical parallelism in QuickStart ("build" -> "building" and added "are" to "Five options are available").
- Converted raw HTML tags to clean Markdown links in Project Structure.
- Fixed capitalization for "React widget".

* docs(readme): update extensions description in Project Structure

Project Structure: Updated the extensions/ directory description in README.md to accurately reference Chatwoot and the React widget (removing the outdated Discord bot reference per maintainer feedback).Project Structure Links: Converted raw HTML links to clean Markdown link syntax for better maintainability and readability.QuickStart Grammar Fixes: Corrected grammatical parallelism ("build" $\rightarrow$ "building" and added "are" to "Five options are available").
2026-07-23 15:26:13 +05:30
Alex d2acb40304 Merge pull request #2611 from arc53/harden-retry-strategy
fix: cleanup models, better retry strat
2026-07-23 11:36:59 +02:00
Alex 32597df153 fix: cleanup models, better retry strat 2026-07-23 10:22:10 +01:00
GH Action - Upstream Sync 5298701c87 Merge branch 'main' of https://github.com/arc53/DocsGPT 2026-07-23 02:49:09 +00:00
Alex c3d605f07a Merge pull request #2609 from arc53/fix-openai-compat-file
fix: bug on openai compat file upload
2026-07-22 16:29:46 +02:00
Alex b4211944f1 fix: dedup nit 2026-07-22 15:16:27 +01:00
Alex d29a7aaf19 fix: bug on openai compat file upload 2026-07-22 14:28:52 +01:00
ManishMadan2882andClaude Opus 4.8 4cf529476f (fix)workflow: stable outside-click handler, drop trailing whitespace
Address Copilot review on #2600:
- pass a useCallback handler to useOutsideAlerter so the global mousedown
  listener isn't torn down/re-added on every WorkflowBuilder render
- remove trailing spaces after {displayName} in AgentPageHeader

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-22 18:32:12 +05:30
Alex 92eb7f333a Merge pull request #2608 from arc53/fix-api-tool-encoding
fix: api tool encoding bug
2026-07-22 11:23:04 +02:00
Alex 5de7ae53e5 fix: type 2026-07-22 10:18:15 +01:00
Alex 6dd55a4603 fix: api tool encoding bug 2026-07-22 09:44:53 +01:00
GH Action - Upstream Sync 2c647d6588 Merge branch 'main' of https://github.com/arc53/DocsGPT 2026-07-22 02:43:19 +00:00
Alex ce0402a003 fix: better tool persistance 2026-07-21 14:28:19 +01:00
Alex 96b423795a Merge pull request #2605 from arc53/fix-durable-pauses
fix: more durable pause
2026-07-21 14:10:07 +02:00
Alex ad6d9a83e0 fix: more durable pause 2026-07-21 13:00:15 +01:00
Alex 31af4d37ab Merge pull request #2604 from arc53/finish-reason-handling
fix: handle wierd empty finish content as error
2026-07-21 13:32:41 +02:00
Alex 196e4e86d2 fix: handle wierd empty finish content as error 2026-07-21 12:03:44 +01:00
Alex b1ded11432 Merge pull request #2603 from arc53/daytona-invalidated
fix: handle invalidated sandboxes in daytona gracefully
2026-07-21 11:08:37 +02:00
Alex fd110e80d4 fix: handle invalidated sandboxes in daytona gracefully 2026-07-21 09:43:22 +01:00
Manish Madan d13f26b538 Merge branch 'arc53:main' into main 2026-07-21 03:13:03 +05:30
ManishMadan2882 19648a98fc (fix)worflow: ux, close the wrkflw settings on lclick outside even if the canva clicked 2026-07-21 03:12:33 +05:30
ManishMadan2882 f8aa67fc3a (fix)workflow ux: fixed width for title 2026-07-21 02:51:58 +05:30
Alex c586d7f265 Merge pull request #2599 from arc53/fix-multitoolcallissue
Fix multitoolcallissue
2026-07-20 21:52:01 +02:00
Alex e4265ce38a fix: mini issues 2026-07-20 20:35:18 +01:00
Alex 64b3bd3356 feat: harden webtool 2026-07-20 19:57:44 +01:00
Alex 3cbd284948 fix: multitool call openai issue 2026-07-20 18:29:24 +01:00
Alex 0a9f18c58f fix: add benchmark to ignore 2026-07-20 12:18:36 +01:00
Pavel 1fc43d5b9b Merge pull request #2591 from ManishMadan2882/feat/scroller-migration
(feat)chats: shadcn msg scroller, fix jitter
2026-07-16 19:44:52 +03:00
ManishMadan2882 563ead105a (feat)message scroller - no explicit space, workflow prev uses message scroller 2026-07-16 19:01:30 +05:30
Alex 3e34f45f96 Merge pull request #2594 from arc53/chunks-review
Chunks preview
2026-07-16 11:35:27 +02:00
Alex c566a13527 Merge pull request #2595 from arc53/fix/token-usage-accounting
fix: accurate per-call token usage and oversized-context guards
2026-07-16 11:16:10 +02:00
Alex d554eef97f Update usage.py 2026-07-16 10:12:48 +01:00
Alex 2b8afb8c10 fix: cleanup comments 2026-07-16 09:45:18 +01:00
Alex 1e4e2ff24a fix: better v1 compat and keepalive on long thinking 2026-07-16 09:45:04 +01:00
ManishMadan2882 3fea44c4ee (chore)locales/fe: sync with en 2026-07-16 03:26:10 +05:30
Alex ca5f80995d fix: accurate per-call token usage and oversized-context guards
Token accounting:
- Drain each tool round's provider stream to exhaustion before running
  tools and recursing, so the usage decorator persists exactly one
  token_usage row per LLM call, at call end. Previously every round's
  generator was abandoned mid-iteration and flushed together at request
  teardown, writing N near-identical rows stamped with the final
  round's provider counts (duplicate billing).
- Consume the Chat Completions include_usage terminal chunk (it arrives
  after finish_reason and was never read) so streamed calls record
  provider-exact token counts instead of tiktoken estimates.
- Claim provider-reported usage once per call (_last_usage_claimed) so
  a late-finalized generator can never adopt another call's counts.

Oversized-context guards:
- Enforce Responses API function_call/function_call_output pairing in
  the input builder (drop unpaired items; bypassed for store-mode
  previous_response_id chaining where calls are matched server-side).
- Hard pre-send context gate: shrink oversized tool results and refuse
  payloads that cannot fit the model's window before dispatch, so a
  hopeless request is never sent or billed.
- Cap a single tool result entering the LLM context
  (TOOL_RESULT_MAX_TOKENS, default 20000); the tool journal and
  persistence keep the full result. Applied on the resume/continuation
  path too.
- Skip the fallback attempt when the payload cannot fit the fallback
  model's context window (10% estimation slack).
- Compression: never save a compression point that does not reduce
  tokens; bound oversized verbatim fields kept after a compression
  point (COMPRESSION_RECENT_FIELD_MAX_TOKENS, default 8000).

Robustness fixes from review:
- Google parallel function calls: complete index-less ToolCalls are no
  longer merged into one another (dict arguments raised TypeError on
  +=; second call could execute with the first call's arguments).
- Trailing-frame failures after a delivered answer no longer error the
  stream or restream the whole answer from the fallback
  (_stream_reached_finish).
- In-memory compression falls back to minimal pruning when the summary
  is not smaller than the original.
- keep<=0 guard in the middle-truncation helpers (a tiny cap returned
  marker + full text).

Frontend: tooltip on the Analytics tokens stat card explaining that
agent tool loops re-send conversation context on every step.
2026-07-15 21:20:39 +01:00
Alex a7fd6d7c02 feat: update docs 2026-07-15 10:31:43 +01:00
Pavel 0447eb9b8d Chunks preview 2026-07-13 23:22:17 +03:00
Alex 73c3dfb5c4 Merge pull request #2593 from arc53/endpoint-improvements
Endpoint improvements
2026-07-13 11:15:48 +02:00