Skip to content

feat: Record inlay creation timestamp - #1259

Open
enzi221 wants to merge 5 commits into
kwaroran:mainfrom
enzi221:feat/inlay-date-and-source
Open

enzi221 wants to merge 5 commits into
kwaroran:mainfrom
enzi221:feat/inlay-date-and-source

Conversation

@enzi221

@enzi221 enzi221 commented Feb 12, 2026 •

Copy link
Copy Markdown
Contributor

PR Checklist

  • Required Checks
    • Have you added type definitions?
    • Have you tested your changes?
    • Have you checked that it won't break any existing features?

Summary

image

Records inlay asset creation/attachment timestamps for future utilization. Simply displays them in the explorer for now.

Related Issues

None.

Changes

Both postInlayAsset() and writeInlayImage() records Date.now() into the storage.

Also fixes inlay tests as #1250 invalidated the mocking.

Impact

None; created field is optional.

Additional Notes

Proper utilizations (and display, with better localization) in the explorer will be developed further in subsequent PRs.

@enzi221 enzi221 mentioned this pull request Feb 12, 2026
3 tasks done
@enzi221
enzi221 force-pushed the feat/inlay-date-and-source branch 2 times, most recently from 6423879 to ea5f2f2 Compare February 16, 2026 12:44
@kwaroran

Copy link
Copy Markdown
Owner

While adding the creation time could be beneficial in some cases, I think the disadvantages outweigh the advantages. The size of objects, modules and characters with many assets would increase significantly, which could cause some lag in the serialisation process.

kwaroran added a commit that referenced this pull request Feb 20, 2026
## PR Checklist

- Required Checks
    - [x] Have you added type definitions?
    - [x] Have you tested your changes?
    - [x] Have you checked that it won't break any existing features?

## Summary

`src/ts/parser.svelte` -> `src/ts/parser/parser.svelte`

I hope to change it into `chatParser` or something, not just `parser`,
since the function itself is named `risuChatParser`. Maybe later.

## Related Issues

None.

## Changes

Please refer to the Summary.

Absolutely no other changes. A simple drag & drop of `parser.svelte.ts`
was all I did; everything else are import path changes.

## Impact

None.

## Additional Notes

Inlay test now mocks an nonexistent file. It will get a fix with #1259.
@enzi221

enzi221 commented Feb 20, 2026

Copy link
Copy Markdown
Contributor Author

@kwaroran Fair enough, how about opt-in then? In "Other Bots > Image Generation" or "Advanced Settings".

Inlay key is fully randomized so current explorer sorted in the random key is not so useful alone.

@vhill1994983376

Copy link
Copy Markdown

Or perhaps even place it where you have to toggle show unrecommended settings to see it?

@enzi221 enzi221 mentioned this pull request Feb 21, 2026
3 tasks done
@enzi221
enzi221 force-pushed the feat/inlay-date-and-source branch 2 times, most recently from dc70b29 to 3eecd57 Compare March 2, 2026 12:53
@enzi221
enzi221 force-pushed the feat/inlay-date-and-source branch from 3eecd57 to f52c734 Compare March 7, 2026 15:09
kwaroran added a commit that referenced this pull request Mar 28, 2026
## PR Checklist

- Required Checks
    - [x] Have you added type definitions?
    - [x] Have you tested your changes?
    - [x] Have you checked that it won't break any existing features?

## Summary

Splitted from #1259. This PR only contains the test fixing part.

## Related Issues

None.

## Changes

Module mocks fixed.

## Impact

None.

@cubicj cubicj left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I don't think the extra created field meaningfully changes the storage cost here, since inlay assets already live in their own localforage store and the field stays optional for existing assets.

Check, tests, and build pass locally.

Approving — thanks for the contribution!

@enzi221
enzi221 force-pushed the feat/inlay-date-and-source branch from f52c734 to b03cd1d Compare August 22, 2026 09:06
@enzi221
enzi221 force-pushed the feat/inlay-date-and-source branch from b03cd1d to 2501f86 Compare August 30, 2026 15:59
yor42 pushed a commit to yor42/RisuTanium that referenced this pull request Sep 21, 2026
## PR Checklist

- Required Checks
    - [x] Have you added type definitions?
    - [x] Have you tested your changes?
    - [x] Have you checked that it won't break any existing features?

## Summary

`src/ts/parser.svelte` -> `src/ts/parser/parser.svelte`

I hope to change it into `chatParser` or something, not just `parser`,
since the function itself is named `risuChatParser`. Maybe later.

## Related Issues

None.

## Changes

Please refer to the Summary.

Absolutely no other changes. A simple drag & drop of `parser.svelte.ts`
was all I did; everything else are import path changes.

## Impact

None.

## Additional Notes

Inlay test now mocks an nonexistent file. It will get a fix with kwaroran#1259.
yor42 pushed a commit to yor42/RisuTanium that referenced this pull request Sep 21, 2026
## PR Checklist

- Required Checks
    - [x] Have you added type definitions?
    - [x] Have you tested your changes?
    - [x] Have you checked that it won't break any existing features?

## Summary

Splitted from kwaroran#1259. This PR only contains the test fixing part.

## Related Issues

None.

## Changes

Module mocks fixed.

## Impact

None.
@enzi221 enzi221 mentioned this pull request Oct 8, 2026
7 tasks done
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.

4 participants