mirror of
https://github.com/SillyTavern/Extension-Objective.git
synced 2026-10-15 13:31:50 +00:00
[PR #12] [MERGED] Ability to set auto-generate tasks frequency. #15
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
SillyTavern/Extension-Objective#15
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/SillyTavern/Extension-Objective/pull/12
Author: @Satoshi-Yoda
Created: 3/30/2025
Status: ✅ Merged
Merged: 4/1/2025
Merged by: @Cohee1207
Base:
main← Head:main📝 Commits (2)
d67382fAdded ability to set auto-generate tasks frequency.35e95b2css addition📊 Changes
3 files changed (+39 additions, -5 deletions)
View changed files
📝
index.js(+26 -4)📝
settings.html(+8 -1)📝
style.css(+5 -0)📄 Description
Hi! ^_^
Here is why and here is how.
Why:
First. Because without it the dialog could easily fall into a trapped state.
For example, let's say there is a subtask
Make the {{user}} take an umbrella.And there is an actual dialog:
And that's it. Bad.
Next it will follow one of those paths (depending on the context, model, and Position in Chat value):
Second. Because dialog could naturally flow to some another context, where the generated tasks are no longer relevant. For example, they were generated in some strictly indoor context, and the dialog moved outdoor.
Third. It is helpful for creating moving (shifting / following) tasks without strict end goal. Something like "generate some challenges for the {{user}} given the current state".
How:
Here, I am not sure I understood correctly the part with "Don't let counter go negative".
I removed the comment (sorry about that =), and moved counter re-initialization from the separate function right in place.
And did the same for the new counter. Seems to work with zero and non-zero case, but maybe I missed something?
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.