Studying the Reloaded source version 2:
Server\scripts\main.fos
bool critter_use_skill(Critter& cr, int skill, Critter@ targetCr, Item@ targetItem, Scenery@ targetScen)
{
...
switch(skill)
{
case SKILL_PICK_ON_GROUND: // Pick item or scenery on ground
{
...
MoveItem(item, 0, cr);
if(cr.Mode[MODE_HIDE] != 0 && cr.GetAccess() < ACCESS_TESTER)
{
int sk = cr.Skill[SK_STEAL] - 10 * GRAMM_TO_LBS(item.Proto.Weight * item.GetCount());
sk = CLAMP(sk, 5, 95);
if(sk < Random(1, 100))
cr.ModeBase[MODE_HIDE] = 0;
}
...
It seems that picking up items from ground (or from container, etc) while sneaking will check for a steal roll (even if you don't use steal skill). Maybe you should try to level up ur steal skill a bit more, if you have problem taking items while sneaking.
Take all, will automatically desneak, that is another code part which I did not link, but you can find it urself since the source is published.