Aug 22 (Reuters) - The S&P 500 marked its longest bull-market run with slight gains on Wednesday, although caution prevailed ahead of trade talks, the Federal Reserve’s minutes and the threat to President Donald Trump’s position due to the legal woes of two ex-advisers.

The benchmark index’s bull run has now stretched for 3,453 days, the longest streak by commonly-used definitions, and comes a day after it hit a record intraday high.

Four of the 11 major S&P sectors rose, with energy stocks gaining 1.17 percent as oil prices jumped. Retailers rose on Target and Lowe’s results, but the biggest boost came from technology stocks, which rose 0.47 percent.

Former Trump campaign manager Paul Manafort was found guilty of tax and bank fraud charges on Tuesday evening, while Trump’s former personal lawyer Michael Cohen pleaded guilty to a range of charges and said he acted at the direction of Trump.

Investors are considering whether the twin setback will hurt the Republican Party’s election prospects and widen a criminal probe that has overshadowed Trump’s presidency.

Also on tap are the minutes of the Fed’s August policy meeting, due at 2:00 p.m. ET (1800 GMT). The report is expected to reaffirm the central bank’s commitment to future rate hikes, which Trump has been critical about.

The KBW bank index was flat.

“Investors are curious to see whether Trump will get involved and try to derail the expected rate hike or will we see the politicization of the Fed,” said Josh Jalinski, president of Jalinski Advisory Group in Toms River, New Jersey.

“Since (the S&P) hit a high yesterday, I’d expect some choppiness in trade today, but nothing that would affect the market in the long run.”

As the S&P has climbed in the past few days to its record, more stock have been hitting 52-week highs, while there have been no new 52-week lows so far this week.

At 11:43 a.m. EDT the Dow Jones Industrial Average was up 0.75 points, or flat on a percentage basis, at 25,823.04.

The S&P 500 was up 4.48 points, or 0.16 percent, at 2,867.44 and the Nasdaq Composite was up 32.85 points, or 0.42 percent, at 7,892.02.

The consumer discretionary index climbed 0.44 percent. Strong results from retailers Target and Lowe’s sent their shares to record highs.

Target was up 5.5 percent after beating quarterly estimates and raising its full-year profit forecast.

Lowe’s surged nearly 8 percent after the home improvement chain promised to cut back slow-moving products and unsuccessful business projects.