Dirty indicator red upon load

Hello all,

I noticed today that my Kansas Railroad TW is turning the dirty indicator red immediately upon opening it up. This started occurring right after upgrading to 5.4.0. Is there a way to figure out what is changing and causing the dirty indicator to go red? I only have three railroad tiddlers open upon load.

Thanks in advance!

I’d try testing the following filter in Advanced Search > Filter, immediately after reloading:

[all[shadows+tiddlers]!sort[modified]limit[50]]

This will give you a list of the most recently modified tiddlers. You can go down the list to look for likely culprits; you’re looking for a tiddler that would not fall into the list of exceptions defined in $:/config/SaverFilter.

You could also try this filter:

[subfilter{$:/config/SaverFilter}haschanged[]]

The $:/config/SaverFilter is used to determine which tiddlers will turn the dirty indicator red. haschanged[] filters for β€œtiddlers that have been modified during this session”, even if the date in the modified field has not been changed.

-e

I don’t think I’d ever noticed this operator before! Super useful, thanks for pointing it out.

Thanks all! It turns out that $:/HistoryList is the culprit thanks to the suggestions by @etardiff . The contents of $:/config/SaveFilter is:

[all[] -[prefix[$:/HistoryList]] -[prefix[$:/StoryList]] -[status[pending]plugin-type[import]] -[[$:/isEncrypted]] -[[$:/UploadName]] -[prefix[$:/state/]] -[prefix[$:/temp/]]

-[[$:/state/ChangeLog]]
-[[$:/language/ControlPanel/Saving/GitService/CommitMessage]]

So I’m a bit confused as to why that is happening. This only started happening after the upgrade to 5.4.0.

There is a ] missing! It should be:

[all[]] -[prefix[$:/HistoryList]] ...

-e

It’s actually there in the real tiddler. That was a problem with me puttting it in the message.

It seems the problem is solved? We do not have a problem, that blocks v5.4.1. right?

No the problem is not solved. The typo was in my posting of the message, not in the tiddler itself.

I should mention that I have another TW that I upgraded to 5.4.0 and it does not exhibit the same issue.

Maybe it’s not actually $:/HistoryList that is causing the problem?

Try my suggested filter: [subfilter{$:/config/SaverFilter}haschanged[]]
This will show ONLY tiddlers that are really making the dirty indicator turn red.

-e

Do you have any startup actions, that are active?

The suggested filter by @EricShulman yielded zero results. I also deleted the two startup actions that I had and the dirty indicator still turns red upon load. What might be the next step then?

Can you go to the ControlPanel β†’ Info β†’ Wiki Information tab and click the button there.
It gives you some code, that you can directly post here.

It contains anonymised info about your wiki. Especially plugins

Here is the result:

<details><summary>Wiki Information</summary><pre><code>
TiddlyWiki Version: 5.4.0
Current palette: $:/palettes/DesertSand
Current theme: $:/themes/tiddlywiki/vanilla
Current layout: PageTemplate link click move to top
Browser language setting: en-US
Default type for missing tiddlers: 
Auto save setting: no
Code wrapping setting: pre-wrap
Sticky titles setting: no
Sidebar layout setting: fluid-fixed
Auto focus field setting for new tiddlers: title
Current storyview setting: classic
Toolbar text setting: no
Toolbar icon setting: yes
Button class setting: tc-btn-invisible
Navigation address bar setting: no
Tiddler opening behaviour setting for navigations from outside the story river: top
Tiddler opening behaviour setting for navigations from within the story river: above
CamelCase linking setting: disable
Keyboard shortcuts that have been customised: $:/config/shortcuts/open-command-palette
Disabled plugins: 
Plugins: 
  $:/core - 5.4.0
  $:/plugins/danielo515/ContextPlugin - 2.1.0
  $:/plugins/EvidentlyCube/AutoComplete - 1.0.24
  $:/plugins/EvidentlyCube/ExtraOperators - 1.2.0
  $:/plugins/flibbles/relink - 2.5.2
  $:/plugins/kookma/commander - 2.1.14
  $:/plugins/kookma/refnotes - 1.9.1
  $:/plugins/kookma/shiraz - 3.0.14
  $:/plugins/OokTech/BarChart - 0.0.212
  $:/plugins/souk21/commandpalette - 0.0.7
  $:/plugins/telmiger/details - 0.7.5
  $:/plugins/telmiger/EditButtons - 1.0.6
  $:/plugins/telmiger/HarveyBalls - 0.0.6
  $:/plugins/telmiger/listreveal - 0.3.30
  $:/plugins/tesseract/snapshot - 1.0.5
  $:/plugins/tiddlywiki/highlight - 5.4.0
  $:/plugins/tiddlywiki/menubar - 5.4.0
  $:/plugins/tobibeer/appear - 0.6.2
  $:/plugins/TWaddle/SideEditor - 3.0.12
  $:/plugins/wikilabs/link-to-tabs - 3.0.1
  $:/plugins/wikilabs/tocP - 1.0.1
  $:/plugins/yaisog/ancestors-filter - 0.9.0
  $:/plugins/yaisog/descendants-filter - 0.9.0
  $:/temp/info-plugin - 
  $:/themes/tiddlywiki/snowwhite - 5.4.0
  $:/themes/tiddlywiki/vanilla - 5.4.0
Stylesheets: 
  $:/themes/tiddlywiki/vanilla/base ∈ $:/themes/tiddlywiki/vanilla
  $:/plugins/kookma/refnotes/styles/bibtex ∈ $:/plugins/kookma/refnotes
  $:/plugins/kookma/refnotes/styles/bibtex-details ∈ $:/plugins/kookma/refnotes
  $:/plugins/kookma/refnotes/styles/abbr ∈ $:/plugins/kookma/refnotes
  $:/plugins/kookma/refnotes/styles/bibtex-entryview ∈ $:/plugins/kookma/refnotes
  $:/plugins/kookma/refnotes/styles/dropzone ∈ $:/plugins/kookma/refnotes
  $:/plugins/kookma/refnotes/styles/footnote-counter ∈ $:/plugins/kookma/refnotes
  $:/plugins/kookma/refnotes/styles/library ∈ $:/plugins/kookma/refnotes
  $:/plugins/kookma/refnotes/styles/showfnotes ∈ $:/plugins/kookma/refnotes
  $:/plugins/kookma/refnotes/styles/table-borderless ∈ $:/plugins/kookma/refnotes
  $:/plugins/kookma/refnotes/styles/tooltip ∈ $:/plugins/kookma/refnotes
  $:/plugins/wikilabs/link-to-tabs/styles ∈ $:/plugins/wikilabs/link-to-tabs
  $:/plugins/flibbles/relink/ui/stylesheet.css ∈ $:/plugins/flibbles/relink
  $:/plugins/kookma/commander/styles/buttons ∈ $:/plugins/kookma/commander
  $:/plugins/kookma/commander/styles/compInspect/table ∈ $:/plugins/kookma/commander
  $:/plugins/kookma/commander/styles/log ∈ $:/plugins/kookma/commander
  $:/plugins/kookma/commander/styles/other ∈ $:/plugins/kookma/commander
  $:/plugins/kookma/commander/styles/select-width ∈ $:/plugins/kookma/commander
  $:/plugins/kookma/commander/styles/snr/flexbox ∈ $:/plugins/kookma/commander
  $:/plugins/kookma/commander/styles/snr/form ∈ $:/plugins/kookma/commander
  $:/plugins/kookma/commander/styles/tiddler-list ∈ $:/plugins/kookma/commander
  $:/plugins/OokTech/BarChart/Styles ∈ $:/plugins/OokTech/BarChart
  $:/plugins/telmiger/details/colours.css ∈ $:/plugins/telmiger/details
  $:/plugins/telmiger/details/details.css ∈ $:/plugins/telmiger/details
  $:/plugins/telmiger/HarveyBalls/icons.css ∈ $:/plugins/telmiger/HarveyBalls
  $:/plugins/tobibeer/appear/styles ∈ $:/plugins/tobibeer/appear
  $:/plugins/TWaddle/SideEditor/Stylesheet ∈ $:/plugins/TWaddle/SideEditor
  $:/plugins/TWaddle/SideEditor/Window/Stylesheet ∈ $:/plugins/TWaddle/SideEditor
  $:/plugins/wikilabs/tocP/Stylesheet ∈ $:/plugins/wikilabs/tocP
  $:/plugins/EvidentlyCube/AutoComplete/Style ∈ $:/plugins/EvidentlyCube/AutoComplete
  $:/plugins/souk21/commandpalette/Compact.css ∈ $:/plugins/souk21/commandpalette
  $:/plugins/telmiger/EditButtons/styles.css ∈ $:/plugins/telmiger/EditButtons
  $:/plugins/tiddlywiki/highlight/highlight.css ∈ $:/plugins/tiddlywiki/highlight
  $:/plugins/tiddlywiki/highlight/styles ∈ $:/plugins/tiddlywiki/highlight
  Recent Dates Bold Styling
  batchmanipulator/Stylesheet
  Center Edit Text Styling
  Certificate Styling
  Command Palette Styling
  Common Text Styling
  Dot Leader Stylesheet
  Edit Fields Styling
  Even Row Expand Styling
  Eventcatcher Link Styling
  FamilyTree/Stylesheet
  Fieldset Styling
  Flexbox & Grid Styling
  Flexbox Styling for Gallery
  Harvey Balls Styling
  Image Tooltip Styling
  Infobox Styling
  Input Box Styling
  Link to Tab Styling
  Missing Railroads Styling
  My Accordion Styles
  New Railroad Styling
  Newspaper Listing Styling
  Newspaper Template Styling
  Progress Bar Styling
  Progress Details Class
  Progress Info Styling
  Railroad Class Styling
  Refnotes Styling
  Segment Sources Styling
  Sidebar Styling
  Tab Styling
  Table Styles from Shiraz
  Table Styling
  Tooltip Styling
  Trackage History Styling
  Trackage Styling
  tree2 styling
  Tufte CSS
  Wikipedia iFrame Styling
  Page Control Buttons Styling
  Title & Subtitle & Tiddler Styling
  Story River Styling
  List Tree Styling
  $:/plugins/danielo515/ContextPlugin/Stylesheet/results ∈ $:/plugins/danielo515/ContextPlugin
  $:/plugins/TWaddle/ListTree/Stylesheet
  $:/PSaT/SplashScreen/stylesheet
  Details Widget Styling
  Scroll Window Styling
  Scrollbar Styling
  $:/plugins/telmiger/lib/telements-print.css ∈ $:/plugins/telmiger/listreveal
  $:/plugins/telmiger/lib/telements.css ∈ $:/plugins/telmiger/listreveal
  $:/plugins/telmiger/listreveal/lr.css ∈ $:/plugins/telmiger/listreveal
  $:/themes/telmiger/bricks/wikilogic
  Dropdown Styling
  Link Styling
  Open Tiddlers Styling
  $:/plugins/kookma/shiraz/styles/accordion ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/styles/alerts-leftbar ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/styles/alerts-link-color ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/styles/bglowtone-colors ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/styles/bs/alert ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/styles/bs/background-color ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/styles/bs/badge ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/styles/bs/border ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/styles/bs/breadcrumb ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/styles/bs/button ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/styles/bs/card ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/styles/bs/card-group ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/styles/bs/clearfix ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/styles/bs/float ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/styles/bs/image ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/styles/bs/progress ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/styles/bs/root ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/styles/bs/rounded ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/styles/bs/rulers ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/styles/bs/shadow ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/styles/bs/sizing ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/styles/bs/spacing ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/styles/bs/text-bg-color ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/styles/bs/text-color ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/styles/bs/text-effect ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/styles/bs/text-heading ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/styles/bs/text-position ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/styles/bs/text-wrap-truncate ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/styles/clear-float ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/styles/colorify-sidebar-active-tab ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/styles/colorify-ui-buttons ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/styles/dbadge ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/styles/details-slider ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/styles/highlight ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/styles/image-alignment ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/styles/image-basic ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/styles/image-overlay ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/styles/image-polaroid ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/styles/image-pretty ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/styles/image-slidein ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/styles/mono ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/styles/multicols/column ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/styles/multicols/flex ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/styles/searchbox ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/styles/sticky-footer ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/styles/switch-palette ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/styles/tables ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/styles/task-complete ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/styles/tiddler-title-class ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/styles/view-toolbar-button-visibility ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/tables/styles/ct-katex ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/tables/styles/ct-star ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/tables/styles/ct-tables ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/tables/styles/dt-edit-tags ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/tables/styles/dt-tables ∈ $:/plugins/kookma/shiraz
  $:/plugins/kookma/shiraz/tables/styles/dt-tables-var ∈ $:/plugins/kookma/shiraz
  $:/plugins/tiddlywiki/menubar/styles ∈ $:/plugins/tiddlywiki/menubar
</code></pre></details>

These entries in the $:/config/SaverFilter suggest that you may be using an older revision of TiddlyTools/SaveChanges (versions after 25.08.03 use $:/ChangeLoginstead of $:/state/ChangeLog).

Note that TiddlyTools/SaveChanges is tagged with $:/tags/StartupAction/Browser. This is so that it can automatically hide the TWCore standard β€œsave changes” button (by setting the text of $:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/save-wiki to β€œhide”) and replace it with the TiddlyTools-enhanced β€œsave changes” button that includes modal handling for entering $:/ChangeLog entries before saving the file.

If $:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/save-wiki is missing, this startup action may be having an effect on the display of the dirty indicator the first time it is loaded after upgrading.

Try this:

  • Load the file that shows the dirty indicator at startup
  • Save (to another filename!)
  • After loading the newly saved file, does the dirty indicator still appear red?

If so, try:

  • Load the file that shows the dirty indicator at startup
  • Install the latest revision of TiddlyTools/SaveChanges
  • Make sure to rename $:/state/ChangeLog to just $:/ChangeLog
  • Save (to another filename!)
  • After loading the newly saved file, does the dirty indicator still appear red?

If so, try save-and-reload one more time.

Let me know how it goes…

-e

In both cases, the dirty indicator was still red upon load. I even uninstalled TiddlyTools/SaveChanges completely and it was still red upon load. However, I noticed something interesting. Normally, when you close a wiki with the dirty indicator red you’re asked are you sure you want to leave. After uninstalling SaveChanges, I was not asked that even though the dirty indicator was red.

I think I fixed it. I removed the ContextPlugin and that seems to have fixed the issue. Not sure why, but the dirty indicator isn’t red immediately upon load anymore.

The following is not a solution in itself for the dirty indicator coming on, but it is related.

On websites such as tiddlywiki.com where you may experiment with your code and following the documentation, it will be common for your changes to trigger the dirty state but you never intend to save the wiki. The following code if pasted inside a Bookmarklet, when clicked resents the dirty indicator to not dirty.

Reset Dirty bookmarklet

javascript:(function(){ $tw.saverHandler.numChanges = 0; $tw.saverHandler.updateDirtyStatus(); })();

New changes will β€œrestore” the dirty indicator so I tend to do this just before or when closing the browser for shutdown.

I actually use this a lot.