Repository navigation
Fix NowIsoUtc: use TTimeZone.Local.ToUniversalTime under Delphi - #5
Merged
Merged
Conversation
LocalTimeToUniversal is FPC-only (FPC DateUtils); Delphi requires
TTimeZone.Local.ToUniversalTime from System.DateUtils. Guard with
{$IFDEF FPC}/{$ELSE} so both compilers resolve correctly.
https://claude.ai/code/session_01TBcLtmpj7dqA5tyFbGnQon
FMXExpress
force-pushed
the
claude/nice-dirac-sBwXK
branch
from
May 27, 2026 06:20
0f6875c to
998edfd
Compare
4 of 5 tasks
khongten001
pushed a commit
to khongten001/PasClaw
that referenced
this pull request
Jul 13, 2026
… up with fs_read The historical snippet width of 24 tokens routinely clipped the actual answer line out of FTS5 snippets returned by memory_search / kb_search. LOCOMO bench numbers on the workspace memory layer: snippet R@10: 0.75 -> 1.0 snippet R@1: 0.375 -> 0.875 doc R@10: 1.0 (unchanged, was already optimal) Two changes: 1. Lift the magic 24 into a named interface-section const FTS5_SNIPPET_TOKENS = 60 in PasClaw.Memory.Index, and reuse it from PasClaw.KB.Index so memory_search and kb_search stay aligned. 64 is FTS5's hard ceiling; 60 leaves slack for the highlight markers. 2. Extend rule FMXExpress#5 in PasClaw.Agent.Prompt.BuildRulesSection to tell the model that bounded snippets are an index hit, not a final answer -- if the cited file is right but the answer line might fall just outside the window, follow up with fs_read (or kb_get) on the cited path before giving up. The two fixes are complementary: a wider window lifts recall on the common case, and the prompt nudge handles long-context documents where even 60 tokens may not centre on the right line.
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.
Summary
LocalTimeToUniversalis FPC-only (DateUtilsunit); calling it under Delphi producesE2003 Undeclared identifier: 'LocalTimeToUniversal'{$IFDEF FPC}/{$ELSE}: FPC keepsLocalTimeToUniversal(Now); Delphi usesTTimeZone.Local.ToUniversalTime(Now)fromSystem.DateUtils(already in scope via theDateUtilsimport +DCC_Namespace)Test plan
NowIsoUtccompiles and returns correct UTC ISO-8601 stringE2003error;TTimeZone.Local.ToUniversalTimeresolves correctlyhttps://claude.ai/code/session_01TBcLtmpj7dqA5tyFbGnQon
Generated by Claude Code