3bcf86a0995e5a15ad5a2a8ff5533f48d5d43653
max
  Fri Sep 18 07:15:28 2026 -0700
hgTracks: tell the user what a session load just did, refs #38157

#Preview2 week - bugs introduced now will need a build patch to fix
When a saved session is loaded it replaces the whole cart, and the view the
user had before is gone without a word.  hgTracks now shows a note on that
page saying which session was opened, who saved it and when, the session
description if it has one, and that the previous configuration cannot be
brought back.  Only on that one page: cart.c leaves a marker when a full
(non-merge) session load happens and hgTracks takes it out again.
Recommended track sets merge into the cart, so they get no note.

The note uses a new notifBoxOnce() in utils.js, which has only a Close
button: a one-page message does not need 'Don't show again'.  Its .notifBoxOnce
style is the card grey of the new Sessions page, and it sets no width, so
unlike the other notifBoxes it cannot stick out of the window.

Switch off with sessionLoadNotice=off in hg.conf.

diff --git src/product/ex.hg.conf src/product/ex.hg.conf
index 17a5e11283e..930b0ca1a4b 100644
--- src/product/ex.hg.conf
+++ src/product/ex.hg.conf
@@ -661,30 +661,35 @@
 # Configuration options for creating session thumbnails:
 #
 # System path from cgi-bin to an alternate directory to store
 # thumbnails (default is ../trash/hgPS).
 #sessionThumbnail.imgDir=../trash/hgPS
 # Path from cgi-bin to the thumbnail directory as seen from
 # the web (default is ../trash/hgPS).
 #sessionThumbnail.webPath=../trash/hgPS
 # System path to Imagemagick convert executable, in case it's not
 # in Apache's path.
 #sessionThumbnail.convertPath=/usr/bin/convert
 # Suppress creation of thumbnails and associated warnings.  Must
 # be set to "on" to disable thumbnail creation.
 #sessionThumbnail.suppress=on
 
+# When someone opens a saved session, hgTracks shows a note saying which session was opened,
+# who saved it and when, and that the browser configuration they had before is gone.  The note
+# is shown only on the page that loaded the session.  Set to off to switch it off. Default is on.
+#sessionLoadNotice=off
+
 # deactivate the hgMirror CGI on this machine
 # hgMirror is currently only supported on the GBIB VirtualMachine
 # default is 0
 # allowHgMirror=1
 
 # Turn off option to save blat results as a custom track. Default is on.
 # useBlatBigPsl=off
 
 # number of sequences allowed to submit to on-line blat, default is 25
 # hgBlat.maxSequenceCount=25
 
 # Put BLAT result custom tracks into their own "BLAT Results" track group directly below
 # Custom Tracks, with a "Delete all" button on the group, and give headerless queries a
 # clearer default name (query size + top hit gene, e.g. "400bp SOD1").  Off by default:
 # results stay in the Custom Tracks group with the classic "blat YourSeq" names.