If there are no pinned tabs in the database on startup,
assume it's a migration from an older version and save all
currently pinned tabs to the database. Previously, Zen
would remove any pinned tabs that didn't have a `zen-pin-id`
attribute, which would occur during migration. This change
ensures that pinned tabs are preserved during upgrades.
This commit fixes an issue where the user context ID was not being parsed correctly when pinning tabs.
Previously, the user context ID was being stored as a string, which could lead to unexpected behavior. This commit ensures that the user context ID is parsed as an integer, which is the correct data type.
This change will ensure that pinned tabs are stored and retrieved correctly.