You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maka.apache.org by "rekcilyssup (via GitHub)" <gi...@apache.org> on 2026/08/24 07:52:35 UTC
[PR] docs(core): correct query-text truncation comment [maka]
rekcilyssup opened a new pull request, #3690:
URL: https://github.com/apache/maka/pull/3690
## Summary
The doc comment on `EXTERNAL_SESSION_QUERY_TEXT_MAX_CHARS` claimed a search term longer than the cap *"is refused rather than matched"*. The function directly below truncates instead:
```ts
const trimmed = value.trim().slice(0, EXTERNAL_SESSION_QUERY_TEXT_MAX_CHARS);
```
And `packages/core/src/__tests__/external-session-query.test.ts` explicitly pins *"an over-long term is truncated rather than refused"*. Anyone reading the constant would mispredict the API. Reworded to describe the actual (tested) behavior.
## Verification
- Comment-only change; no code paths touched.
- `npx biome check packages/core/src/external-session.ts` clean; ASF header check passes.
## AI use
Select exactly one:
- [ ] No generative tool made a substantive contribution
- [x] Generative tooling made a substantive contribution
Tool(s) and scope: opencode — spotted the comment/behavior contradiction while reading `external-session.ts` and drafted the rewording. Commit carries the `Generated-By: opencode` trailer.
## Checklist
- [x] Tests cover the change and fail without it
- [x] Lint, format, typecheck and the affected suites pass locally
Does this PR entail a change in behavior?
- [x] No
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org
Re: [PR] docs(core): correct query-text truncation comment [maka]
Posted by "Astro-Han (via GitHub)" <gi...@apache.org>.
Astro-Han merged PR #3690:
URL: https://github.com/apache/maka/pull/3690
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org